Distributed Workflow Orchestration Platform  ·  View 15 of 31  ·  Runtime

Trigger Modes — Immediate, Scheduled, Event-Driven and Replay

Four ways an execution starts, and the single path they all converge on.

Editable source SVG draw.io All views
Trigger
Trigger
Admit
Admit
Create execution
Create execution
Dispatch
Dispatch
Immediate
Immediate
Client POST
synchronous request
Client POST...
Execution API
Idempotency-Key honoured
Execution API...
execution PENDING
202 returned
execution PENDING...
Outbox → task queue
Outbox → task queue
Scheduled
Scheduled
Cron definition
IANA timezone · DST aware
Cron definition...
Scheduler leader
60 s tick · fencing token
Scheduler leader...
Misfire policy applied
skip · run-once · catch-up
Misfire policy applied...
Same dispatch path
Same dispatch path
Event-driven
Event-driven
CloudEvent
Event Grid custom topic
CloudEvent...
Trigger Service
filter + input mapping
Trigger Service...
Dedupe on event id
24 h window
Dedupe on event id...
Same dispatch path
Same dispatch path
Operator replay
Operator replay
Replay request
from DLQ or history
Replay request...
Operator API
RBAC + reason required
Operator API...
New execution
parent_execution_id linked
New execution...
Same dispatch path
Same dispatch path
Trigger Modes — Immediate, Scheduled, Event-Driven and Replay
Trigger Modes — Immediate, Scheduled, Event-Driven and Replay
External / third party
External / third party
Application we own
Application we own
Data store
Data store
Queue / topic
Queue / topic
Decision point
Decision point
Person or role
Person or role
synchronous
synchronous
event / async
event / async
Four entry points, one execution path. Every mode converges on the same execution document and the same outbox, so nothing downstream of admission needs to know how a workflow was started.
Four entry points, one execution path. Every mode converges on the same execution document and the same outbox, so nothing downstream of admission needs to know how a workflow was started.
v 1.0 · owner Data & AI Global Practice · date 2026-08
v 1.0 · owner Data & AI Global Practice · date 2026-08
Text is not SVG - cannot display

Decisions

  • Four entry points, one execution path. Every mode produces the same execution document and the same outbox row, so nothing downstream of admission needs to know how a workflow was started.
  • Operator replay is modelled as a first-class trigger rather than a back door. It creates a new execution linked to its parent, which keeps the audit trail intact and keeps replay from mutating history.
  • Scheduling is a control-plane concern with an explicit misfire policy. A scheduler that was down for an hour must be told whether to skip, run once, or catch up — leaving it undefined is how duplicate month-end runs happen.

Semantics per mode

  • Immediate: idempotent on the client's Idempotency-Key, answered 202, p95 under 300 ms.
  • Scheduled: cron with IANA timezone and DST awareness, evaluated on a 60-second tick by the leader only (view 30), each fire claimed with a fencing token so a leader change cannot double-fire.
  • Event-driven: CloudEvents through Event Grid, filtered on eventType and tenantId, deduplicated on event id within a 24-hour window because Event Grid itself is at-least-once.

Risks

  • Catch-up misfire policy can produce a burst of executions after an outage. It is per-schedule configuration with a documented default of skip, and the burst is bounded by the tenant's concurrency lease.
  • The 24-hour dedupe window is a storage-versus-safety trade. A publisher that redelivers after 24 hours will cause a duplicate execution, which is why publishers are asked to include a stable event id.
  • Timezone-aware cron near DST boundaries is the classic source of missed or doubled runs. It is a named test case rather than an assumption.