Control flow: Command, Send, cycles, recursion limits
Notebook· 07.03· 120–150 min· Lesson 58 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Update state and route in one step with
Command(update=..., goto=...), and declaredestinationsso the graph stays drawable. - Fan out dynamically (map-reduce) with
Send: one worker per item, results merged by a reducer. - Build a cycle that always ends: a counter in state, a conditional exit.
- Bound everything with
recursion_limit, catchGraphRecursionError, and degrade gracefully withRemainingSteps.
Before you start
Lesson 07.02.
