aion/workflow/continuation

continue_as_new workflow primitive.

Values

pub fn continue_as_new(
  input: a,
  input_codec: codec.Codec(a),
) -> Result(Nil, error.WorkflowError)

Continue the current workflow as a new run with fresh history.

The input is serialized through the workflow’s input codec — the same codec the entry wrapper decodes with — so the replacement run receives exactly the payload shape it expects. On success the engine records WorkflowContinuedAsNew and terminates the current run, so an Ok value is intentionally uninhabited.

Search Document