Skip to main content

workflow

Attribute Macro workflow 

Source
#[workflow]
Expand description

Marks a function as a durable workflow.

The first parameter must be ctx: &mut Ctx. The macro wraps the function to create/resume a task row and manage the workflow lifecycle.

#[durable::workflow]
async fn my_job(ctx: &mut Ctx, input: String) -> Result<()> {
    // ...
}