Expand description
Trigger engine: cron scheduler and event-driven task creation. Trigger engine: cron scheduler and event-driven task creation.
The TriggerEngine runs as a long-lived tokio task inside orchestratord,
watching for cron ticks and task-lifecycle events and creating tasks when
trigger conditions are met.
Structs§
- Trigger
Engine - The trigger engine itself. Constructed via
TriggerEngine::newand driven viaTriggerEngine::run. - Trigger
Engine Handle - Handle used by the rest of the system to communicate with a running engine.
- Trigger
Event Payload - Payload broadcast when a trigger-relevant event fires.
Enums§
- Trigger
Reload Event - Notification sent to the engine when trigger configuration changes.
Functions§
- broadcast_
task_ event - Broadcast a trigger-relevant event (task_completed / task_failed / webhook). Called from the daemon’s event handling path.
- notify_
trigger_ reload - Notify the trigger engine to reload its configuration. Also notifies the filesystem watcher (if running) to re-evaluate watched paths. Safe to call from sync code. No-op if no engine/watcher is running.