A run does one step. Something outside the VM starts the next step: the caller, your own workflow tool, cron job or queue, or the API server when a run ends. A run never starts a run.
Use it when the next step depends on what the task found. The task returns the next step in its result: which task, and which payload. Or it returns "done". The caller reads the result and starts that step.
Plan: any plan.
A failed run names no next step. The caller decides.
The result is at most 10 KiB. Pass a reference to your own storage, not the data.
A run that fails returns no next step. The caller decides: try again, or stop the flow.
This is also how you branch and loop. See Flow shapes.
2 · Your own orchestrator
Use it when the flow has more than a few steps, or when a lost step costs you. Your workflow tool, cron job or queue keeps the state of the flow. It starts each step, waits for its end, and starts the next one. Ignitify is the secure compute step that your tool calls.
Plan: any plan.
Your orchestrator keeps the flow state, the keys and the retries.
How your orchestrator waits for a step
Follow the run until it ends (task:run with wait).
Use it when task B needs to know only that a run of task A ended. Task A's end-of-run callback goes straight to task B's webhook, with no server of yours in between. B starts with A's run id and status as its payload. B does not get A's result.
Plan: Starter and up.
The API server starts B when A ends. B gets the status, not the result.
Set it up
Create a webhook for task B (hook:create). Keep its URL and its secret.
Set the callback of task A's deployment to that URL, with B's webhook secret as the signing secret (notify:set).
In task B, read status from the payload. If it is not COMPLETED, stop.