The TriggerSchedulerMonitor reports realtime triggers as locked Describe the issue The…
- User
The
TriggerSchedulerMonitorreports realtime triggers as lockedDescribe the issue
The
TriggerSchedulerMonitorreports realtime triggers as locked.[tenant: main] [namespace: company.team] [flow: realtime-kafka] [trigger: kafka] No execution found, schedule is blocked since '2026-04-27T13:38:23.415498Z'
But as those trigger will always be blocked without any executionID they will be reported indefinitly.
Environment
- Kestra Version: develop
Interface
No new interfaces are introduced.
- Assistant
Investigating how
TriggerSchedulerMonitorhandles realtime triggers versus scheduled ones. - Assistant
Realtime triggers stay locked while listening on a worker, so the monitor shouldn't treat that as a missing execution. Implementing the fix and adding a test.
- Assistant
Fixed.
TriggerSchedulerMonitorwas treating all locked triggers the same, but realtime triggers are expected to stay locked while listening on a worker — they only create executions when events arrive.Root cause
In
TriggerScheduler, realtime triggers are always locked when assigned to a worker:374:381:scheduler/src/main/java/io/kestra/scheduler/TriggerScheduler.java
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.