Functional API
Notebook· 07.05· 90–120 min· Lesson 60 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
- Write a workflow with
@entrypointand@task: plain Python control flow, futures, parallel tasks. - Use a checkpointer with the Functional API: resume after an error without redoing finished tasks;
previousandentrypoint.finalfor short-term memory. - Follow the rules that make this safe: determinism, idempotent side effects, JSON-serializable inputs and outputs.
- Choose between the Graph and Functional APIs for a given task, and write down your own rule of thumb.
Before you start
Lessons 07.02–07.04.
