Build flows
Ignitify runs one step in one VM. You build a flow from steps: state that goes from one run to the next, a way to start the next step, and the guides below. Each table here helps you choose, and links to the page that shows how.
Pass state between runs
A run does not see the run before it. Pick one way to carry state from one run to the next. Pass state between runs shows each way with its limits.
| Way | Where it lives | Plan | Use it when | Read |
|---|---|---|---|---|
| From outside | The last result. Your script passes it on as the next payload. | Any plan | Something outside starts each run anyway: a script, a CI job or your server. | From outside |
| Warm memory | The memory of a warm VM. | Starter and up | You want a cache that makes the next run faster, and you can lose it at any time. | Warm memory |
| Own database | Your database, over its HTTPS API. | Starter and up | The state is larger than 10 KiB, you cannot lose it, or runs started together share it. | Own database |
Chain runs
A run ends with a result. The task can return which step comes next. The caller, or your own workflow tool, cron job or queue, starts that step.
| Way | Where it lives | Use it when | Read |
|---|---|---|---|
| The next step in the result | The result of the run: which task, and which payload. | The next step depends on what the task found. This is also how you branch and loop. | The next step in the result |
| Your own orchestrator | Your own workflow tool, cron job or queue. It keeps the state of the flow. | The flow is larger than a few steps. Ignitify is the secure compute step that your tool calls. | Your own orchestrator |
| Run B when A ends | Task A's end-of-run callback calls task B's webhook. B gets A's run id and status, not its result. | B needs to know only that A ended. | Run B when A ends |
Flow shapes
Your orchestrator or the caller makes each shape from single runs. A run never starts other runs. Flow shapes shows each one.
| Way | Where it lives | Use it when | Read |
|---|---|---|---|
| Fan-out | Your orchestrator or a script starts many runs. | Work splits into parts that can run at the same time. | Fan-out |
| Fan-in | Your orchestrator waits for all parts, then combines the results. | The next step needs every part. | Fan-in |
| Branch and loop | The task returns the next step or "again". The caller starts it and counts. | The next step depends on a result. | Branch and loop |
| One at a time | Your orchestrator, a schedule, or a bidirectional task. With --on-busy queue a second run waits and runs on the same VM, so with state: across-runs they share its memory. Behind a busy pinned VM a run fails with bidirectional-busy. | Runs must not overlap. | One at a time |
Wait and time
A run does not wait. To act later, or when something happens, start the run then.
| Way | Where it lives | Use it when | Read |
|---|---|---|---|
| Run later | A one-time schedule on the platform (--at). | One run must start at a set time. | Schedule the run |
| Recurring | A recurring schedule with a cron expression. | A run must start every hour, every day or on a calendar. | Run on a schedule, Tutorial: uptime check |
| Wait for an event or a person | A signed webhook is the resume point. A provider, a person or an approval tool calls it, and it starts the next step. | The next step starts when something outside happens. | Trigger from a webhook, Tutorial: nightly report, Tutorial: PR reviewer |
| A long-lived VM | A run that lasts, or a VM that stays warm or pinned. | One process must stay up and serve traffic. | Keep a VM warm or pinned, Tutorial: streaming job |
Safety and retries
The platform retries its own infrastructure failures. A task error is not retried: the caller or your orchestrator retries it.
| Way | Where it lives | Use it when | Read |
|---|---|---|---|
| No duplicate runs | An idempotency key on the request that starts the run. | A script retries task:run after a network error. | Retry a run safely |
| Platform retries | The platform. Your plan sets the number of tries. | You want to know what is retried for you, and what is not. | Reliability |
| Cancel | One command for one run. Your orchestrator cancels the runs it started. | A run must stop, or the flow is no longer needed. | Stop and clean up |
See the flow
The platform shows each run. It does not show a flow. Put a flow id in the payload of every run and in its result, then read it back from the results.
| Way | Where it lives | Use it when | Read |
|---|---|---|---|
| Per-run view | The CLI and the tenant app: status, result, logs, timeline, failures. | You look at one step of a flow. | Run commands |
| Alerts | Notifications, for example a refused webhook or a reached limit. notification:list shows them. | You want to be told when something stops a run. | notification:list, Trigger from a webhook |
| Usage | Usage and limits per tenant. There is no usage view per flow. | You want to know what all your flows cost together. | See what you used this month |