You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reschedule (C4): switches to mutateWithFallback. PG hits go through
the existing RescheduleTaskRunService (which enforces status ===
"DELAYED"). Buffered hits land a set_delay patch on the snapshot;
the drainer materialises the PG row with the new delayUntil. Synth-
esised response returns { id, delayUntil }.
Replay (C5): adds a read-fallback after the PG miss. The B4-extended
SyntheticRun carries every field ReplayTaskRunService reads from a
TaskRun, so the buffered case casts through and uses the existing
service unchanged. Replay creates a fresh trigger that itself
re-enters the mollifier gate — no special surge handling needed
beyond what the gate already does. Also tightens the PG lookup to
findFirst with runtimeEnvironmentId scoping (was findUnique on
friendlyId only).
Reschedule and replay APIs now handle buffered runs.
7
+
8
+
`POST /api/v1/runs/{id}/reschedule` switches to `mutateWithFallback`. PG hits go through the existing `RescheduleTaskRunService` (which enforces `status === "DELAYED"`). Buffered-QUEUED hits land a `set_delay` patch on the snapshot; the drainer materialises the PG row with the new `delayUntil`. `busy` snapshots wait for drainer resolution then route through PG. Synthesised response returns `{ id, delayUntil }` for the SDK to confirm.
9
+
10
+
`POST /api/v1/runs/{id}/replay` adds a read-fallback after the PG miss: when the original run is still in the buffer, the synthesised TaskRun (extended in Phase B4 with all `ReplayTaskRunService`-relevant fields) is passed straight to the existing replay service. Replay creates a fresh trigger that itself re-enters the mollifier gate — no special surge handling needed. Also tightens the PG lookup to `findFirst` with `runtimeEnvironmentId` scoping; the prior `findUnique` left auth boundary checks to the upper layer.
0 commit comments