Diagram explorer

Recovering a job after admission

These four worker failure cases are proposed design tests. Follow a duplicate delivery, a stale claim, an orphaned artifact or an unknown provider charge to its own recovery condition.

Relationship map
01 Dispatch intent02 Inspect the durable job03 Lease and generation04 Immutable attempt object05 Guarded publication06 Sweep orphan outputs07 Acknowledge completion08 Provider response missing09 Reuse provider identity10 Park the unknown outcome
01 / 10Delivery and ownership

Dispatch intent

Admission already committed a job and outbox row. A relay may publish the same job twice if it stops before marking the first send as complete.

02 / 10Delivery and ownership

Inspect the durable job

Look up the authoritative job ID before rendering. A completed job can be acknowledged immediately. New work requires an eligible claim.

03 / 10Delivery and ownership

Lease and generation

Each new claimant acquires a bounded lease and increments the generation. A slow worker can still compute after expiry, so the permission to publish is checked separately.

04 / 10Artifact outcome

Immutable attempt object

Save the generation-specific output before publishing it. A process stop between storage and completion can leave a real object with no visible job pointer.

05 / 10Artifact outcome

Guarded publication

Update the visible pointer only when the generation still owns the job. The test checks that a late worker cannot replace the current result.

06 / 10Artifact outcome

Sweep orphan outputs

An unreferenced attempt object may be superseded during recovery. Inspect job pointers and remove orphaned objects later while preserving the visible winner.

07 / 10Artifact outcome

Acknowledge completion

Inspect the published job ID and artifact pointer. Duplicate delivery may repeat work but only the winning completion should be visible.

08 / 10External effect

Provider response missing

A paid provider may have accepted the work before timing out. Worker lease state says nothing about the provider’s charge.

09 / 10External effect

Reuse provider identity

Where supported, query the operation or retry with the same provider identity. Record the resolved external outcome against the original job.

10 / 10External effect

Park the unknown outcome

Without deduplication or lookup, mark the job for reconciliation and assign an owner before any replay. A timeout alone cannot establish absence of a charge.