Tinker Queues and background jobs

by Samy (Kondasamy Jayaraman) · drawn with Colorfigures by April Zhu

09:10

09:10. Rosa gets knocked over at 09:30.10 waiting · 1 busy · 1 to retry · 5 done · courier down

Chapter 7 of 7

Run the sale day

Everything is on the bench: workers, the most tries and the lease. Tomorrow’s sale brings the outage, the bad address and a crash.

This chapter: Which settings lose no good order and keep waits short, with the fewest workers?

About this chapter

You will learn

  • A lease must outlast the slowest job
  • Enough tries to ride out an outage
  • Why more than one setting can be equally good

Words you’ll meet

Workbench
Every setting at once, run over the whole sale, checked against the owner’s rule.

Step 1 of 2

The runs the whole sale: the courier outage, Moe’s bad address, the pallet and a crash.

Meet the owner’s rule with the fewest workers.

1 worker RULE BROKEN

No good order on the dead-letter shelf, and no order waits more than 20 minutes; then pay for as few workers as you can.

Each worker is paid for the whole sale, busy or not.

The courier’s site goes down during the sale, and one order fails every try.

The pallet takes longest to pack, and a worker gets knocked over mid-sale.

The sale, 09:00 to 09:59
CaseToday
Good orders on the dead-letter shelfnone
Longest wait (limit 20 min)52 min
Moe’s order2 tries, still retrying
Karl’s palletnever packed
Orders shipped twice0

A simulated sale: Larkspur’s own orders and planning-number job times, slowed so you can watch.