09:06. Both workers are mid-job.2 waiting · 2 busy · 4 done
Chapter 5 of 7
Ran twice
The sale is busy and the workers are flat out. Then one trips over a box mid-job, a parcel already booked.
This chapter: What happens to a job whose worker falls over halfway?
About this chapter
You will learn
- A lease hides a job while a worker has it
- When the lease runs out, the job comes back
- Idempotent jobs are safe to run twice
Words you’ll meet
- Lease
- How long a taken job stays hidden from other workers; with no “done” by then, it comes back.
- At least once
- A queue’s promise that every job runs, and some may run more than once.
- Idempotent
- Safe to repeat: running it twice has the same effect as running it once.
Step 1 of 5
Both workers are mid-job. A taken job’s hides it from the others for 6 minutes.
Knock over a busy worker.