Order the steps
Order a worker's handling of one job.
- On failure, schedule a retry with backoff, or dead-letter after N attempts
- Claim one job (FOR UPDATE SKIP LOCKED or broker receive)
- Mark it done or acknowledge
- Do the work idempotently
Choose an answer, then open Show answer below to check it.
Show answer
Answer: B D C A
- Claim one job (FOR UPDATE SKIP LOCKED or broker receive) Others can't take it meanwhile.
- Do the work idempotently A retry won't send a second email.
- Mark it done or acknowledge Only after success.
- On failure, schedule a retry with backoff, or dead-letter after N attempts Poison jobs stop cycling.