Expand description
Runs: executing a program over a message.
Structs§
- Audit
Entry - One task’s audit record, written as v3 wrote one.
- Cancel
Token - A cancellation flag. Clones share one flag; a
childhas its own, and is cancelled when it or any ancestor is. - Change
- One write or removal, written as v3 wrote one.
- Context
- The context: always
data,metadataandtemp_data, in that order. Each root starts as an object, and every write keeps it one:map,Ctx::setandContext::setrefuse anything else at a root. - Engine
- A program and its config: what runs messages.
- Engine
Builder - Builds an
Enginefrom definitions: functions registered on aRegistry, the workflows, and the config.buildfails if any workflow is rejected, with every rejected definition’s issues. - Engine
Config - What an
Engineis configured with beside its program. A reload,Engine::with_program, keeps it. - Error
Context - Where the engine mirrors failure records in the context, and how many it keeps.
- Error
Record - One error record, written as v3 wrote one: the same keys, in the same order, each optional one absent when unset. The engine stamps every record a task adds with the workflow’s and the task’s ids and the run’s timestamp, keeping any the record already carries; a workflow’s own failure carries no task id.
- Instant
- The clock a deadline is read on:
web_time::Instant, which isstd::time::Instantitself on native targets and a browser clock on wasm32. A measurement of a monotonically nondecreasing clock. Opaque and useful only withDuration. - Message
- Pure wire data:
{id, payload, context, audit_trail, errors}, in that order. - Run
- The report of one run: how it ended, what each workflow did, and its trace when one was asked for.
- RunOptions
- What a caller chooses about one run.
- Workflow
Record - One workflow’s part in a run.
Enums§
- Audit
Mode - Which audit entries a run keeps on the message.
Fullby default. - RunStatus
- How a run ended.
- Selection
- Why a workflow did or did not run.
- Workflow
Exit - How a workflow that ran ended.
Constants§
- CHECK_
EVERY - How many ops run between two checks of the limits, when one is set.