📄️ About durable steps
Steps are the building blocks of a Taskurai command. They are an optional extension on top of the built-in durability of tasks, allowing you to structure and orchestrate work in a more fine-grained way. They can be used to perform sub tasks, orchestrate stateful coordination in microservices, run inline code in a durable way, sleeping for a (long) period of time, waiting for external events. Steps automatically persist their state and can recover after failure.
📄️ Sleep
Durable sleep is a step that can be used to pause a command for a specified amount of time. This can be useful when you want to wait for a specific amount of time before continuing with the command. For example when onboarding a new user after a purchase of a product, you might want to wait for a few days before sending a follow-up email.
📄️ Call tasks
Durable call tasks is a step that can be used to create one or more sub tasks and wait for the tasks to be completed. When waiting for tasks, the command can either be suspended or the command can wait for all tasks to be completed. When suspending the command, the step is reporting progress on each task that is completed.
📄️ Create tasks
Durable create tasks is a step that can be used to create one or more sub tasks. Tasks are not waited for, once the tasks are successfully created, the step is completed. It is possible to wait for the completion of created tasks using the Wait for external events step.
📄️ Run inline
Durable run inline is a step that can be used run code inline in a durable way. The step is executed inline, the command is not suspended if the step succeeds. If a step fails, the code is retried according to the retry policy, whether or not the command is suspended after failure can be configured.
📄️ Wait for external events
Durable wait for external events is a step that can be used wait for external events (like human interaction). Additionally, tasks that have previously been created with Create tasks can be awaited for.
📄️ Step configuration
In this section, you will learn how configure steps.