Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← All weeks

Multi-Agent Systems / Week 14

Orchestration and Recovery

Build a durable orchestration service. Persist the team task graph and inject crashes, duplicate deliveries, stale workers, and cancellation.

Your lessons

  1. 01

    Scheduling a durable task graph

    60 minutes planned · 7 sections
    Start →
  2. 02

    Recovering from partial workflow failure

    60 minutes planned · 7 sections
    Start →
  3. 03

    Coordinating concurrent workers

    60 minutes planned · 7 sections
    Start →

// Put it into practice

A durable orchestration service

  1. Download week14.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Schedule a small dependency graph and restart after a simulated effect before acknowledgment.
  3. Lesson 2: Inject failures into a local reservation, charge, and shipment simulator.
  4. Lesson 3: Deliver one job twice and pause a worker beyond its lease.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 14 Python lab ↓

Read the script’s setup instructions and run it on your own computer. The website does not execute code or verify your results.

// Independent work

W14-LAB

Week 14: A durable orchestration service

Persist the team task graph and inject crashes, duplicate deliveries, stale workers, and cancellation.

Extend the guided artifact rather than start a second project. Restart resumes valid work and never repeats a committed simulated side effect.

What to produce

  • A durable orchestration service
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • Restart resumes valid work and never repeats a committed simulated side effect.
  • Each claimed execution is supported by actual saved output.
  • Fixture results and real model results are identified separately.
  • Setup and reproduction use the taught tools without private credentials.
Self-assessment rubric
Technical correctness · 35 points
Implementation or analysis follows the relevant technical mechanism and handles the stated case.
Evaluation and evidence · 30 points
Reproducible tests, appropriate baseline, and accurate interpretation.
Engineering quality · 20 points
Clear structure, safe boundaries, and usable reproduction instructions.
Explanation and reflection · 15 points
Explains tradeoffs, limitations, and next experiment with evidence.

// Retrieve before you reread

Week 14 knowledge check

Try all 6 questions. Check your answers, review the explanations, and retry whenever you like. Answers are checked on this device.

1. Task D requires outputs B and C. B passed; C failed. Is D ready?
2. Effect reserve-22 committed before a worker crashed without acknowledgment. Safe recovery?
3. A cancelled workflow refunded a charge but failed to release inventory. Appropriate report?
4. An invalid destination produces a permanent validation error. Best retry policy?
5. Paused worker has token 8; replacement committed under token 9. Which write should storage accept now?
6. Attempts take one second but jobs wait ninety seconds before starting. Which metric identifies the delay?

Next: week 15 →