Skip to main content

Module trigger_engine

Module trigger_engine 

Source
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§

TriggerEngine
The trigger engine itself. Constructed via TriggerEngine::new and driven via TriggerEngine::run.
TriggerEngineHandle
Handle used by the rest of the system to communicate with a running engine.
TriggerEventPayload
Payload broadcast when a trigger-relevant event fires.

Enums§

TriggerReloadEvent
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.