ReLab

Break it. Watch it recover.

← all runs

Run

Status
SUCCEEDED
Workflow
effectful v1
Run id
96ea5bfd-1536-42c2-ac1b-72b7101efeb7
Seed
1337
Scenario
worker-crash-after-effect
Duration
1.89s

This run was disrupted and finished anyway

1 worker holding work for this run went away. 1 lease expired and the work came back through the reaper. 1 side effect already performed was suppressed by the idempotency ledger, so the retry did not repeat work that had already happened. All of it is in the 23 events below.

What happened

The milestones of this run, in the order they were recorded. Each one is a real event; the full sequence is in the timeline below.

  1. Run started#6 23:31:09.439
    RUN_STARTED

    A worker picked up the first task in the run.

  2. Failure injected on purpose charge#11 23:31:09.648
    FAULT_INJECTED

    ReLab degraded the real system here. This is the break, and everything after it is the recovery.

  3. Worker declared gone#12 23:31:11.020
    WORKER_LOST

    The holder of this run's task is gone and its leases are released. Usually that is five missed heartbeats; a worker that shuts down deliberately while holding work writes the same event, because what the run experienced is the same either way.

  4. Worker stopped responding charge#13 23:31:11.220
    TASK_LEASE_EXPIRED

    Nobody renewed the hold on this task, so another process concluded the holder is gone. This is the mechanism that also works when a machine loses power.

  5. Task returned to the queue charge#14 23:31:11.220
    TASK_REQUEUED

    The work a vanished worker was holding became claimable again.

  6. Task running charge#16 23:31:11.255
    TASK_STARTED

    The handler began executing. Each attempt writes one of these.

  7. Duplicate effect prevented charge#17 23:31:11.257
    SIDE_EFFECT_SKIPPED

    The retry asked to perform an effect already recorded under the same key, so it was not performed a second time.

  8. Task finished charge#18 23:31:11.259
    TASK_SUCCEEDED

    The handler returned without an error and the result was recorded.

  9. Workflow completed#23 23:31:11.299
    RUN_SUCCEEDED

    Every task finished. This event is the run's last: a finished run's story cannot change.

What the journal proves

4
Attempts
3
Workers involved
1
Faults injected
1
Leases expired
1
Tasks requeued
0
Retries scheduled
1
Workers lost
1
Effects suppressed
0
Dead-lettered
1.65s
Recovery

Every number above is a count of events in this run’s journal. Recovery is measured from the first fault, lease expiry, task failure or lost worker to the run completing, the same interval relab test asserts on.

Tasks

Each task in the run, with the attempt it reached and the worker that last held it.
StatusTaskAttemptWorkerError
SUCCEEDEDcharge2/3611a59e4·
SUCCEEDEDimport1/3611a59e4·
SUCCEEDEDreport1/3305c1862·

Timeline

The run’s complete recorded history, in sequence order. This is the same journal relab replay reduces. Filtering hides rows from this view; it never changes the sequence numbers, so a gap in them is still a gap.

1 of 23 recorded events, oldest first.
SeqTimeWhat happenedTaskWorkerTechnical detail
1123:31:09.648Failure injected on purposeFAULT_INJECTEDcharge·
fault_type=worker-crash

ReLab degraded the real system here. This is the break, and everything after it is the recovery.

Event
FAULT_INJECTED
Sequence
11
Task
charge
Worker
·
Occurred at
2026-09-02T23:31:09.648692Z
{
  "v": 1,
  "draw": 0,
  "seed": 1337,
  "scenario": "worker-crash-after-effect",
  "fault_type": "worker-crash",
  "fault_point": "before-task-ack"
}
RECORDINGfive real runs exported from real PostgreSQL by scripts/record-demo.sh, crashes delivered by SIGKILLrelab 241c136-dirty, recorded