Skip to main content

Module context

Module context 

Source
Available on crate features serve and triggers only.
Expand description

The fired event (TriggerEvent) and pure derivations from it: ${trigger.*} text substitution, the deterministic idempotency key, and the auto run-labels. No IO.

Enums§

TriggerEvent
A concrete event that fired a trigger.

Functions§

idempotency_key
Deterministic idempotency key for the event (see spec §9).
labels
Auto labels attached to the enqueued run (low-cardinality by construction).
render_name
Render a {field} run-name template against trigger fields.
substitute
Substitute every ${trigger.<token>} in text. Substituted values are YAML-escaped (wrapped + quotes doubled) so a value containing :/quotes can land in a scalar position without breaking the document. An unknown token is an error (never silently passed through). Returns the substituted text.