Pending and Confirmed Work as Durable States

A service can track work as pending until it receives the confirmation its contract requires. These state changes support recovery after interruption.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace two jobs
  2. Check what confirmation means
  3. Keep the obligation visible through a worker failure
  4. Do not infer completion from the assignment alone

Trace two jobs

One job completes and records its outcome. Another is accepted but its worker stops before confirmation. Store the difference so a replacement worker can pick the appropriate task. Queue invariants explain the retained identity.

Check what confirmation means

A delivery acknowledgement can differ from committed application work. Transport and application meaning distinguish those boundaries.[1]

Keep the obligation visible through a worker failure

A job record can say pending until work is confirmed durably. If a worker stops while processing without recording completion, a later worker can inspect the job and apply recovery rules based on its claim state. See database queue claims.

Submit → pending
Claim → active with owner
Complete and persist result → confirmed
Owner failure → reconcile or retry under policy

Do not infer completion from the assignment alone

A worker can lose ownership or receive duplicate work. Define what qualifies as completed and how a caller reads it. Test the missing acknowledgement path.

References

  1. Google, Site Reliability Engineering ↩