Tutorial

14. Checks in parallel, and resuming

Fulfilment packs the order, and that is all it does. A real one does more first: it picks a box for the order, asks the courier what it charges, and buys a label. The box and the rates do not depend on each other, so they are looked up side by side. The label costs money, so once it is bought, a fulfilment that fails afterwards picks up from there rather than buying a second one.

At the end of chapter 11 a member of staff re-queued a fulfilment whose worker died. A re-queue runs the train from its first junction. With a label to buy, that would buy it twice. In this chapter staff resume it instead.

This chapter starts from the end of chapter 13.

In this chapter

  1. The new chain
  2. The courier and the warehouse
  3. The train
  4. Fulfil an order
  5. Kill the worker mid-pack, and resume
  6. Test it

SDK Reference

Parallel | Checkpoint | Checkpoints and branches | resumeExecution | runGraph


Next: 14.1 The new chain