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
I'll investigate how
TriggerSchedulerMonitortreats realtime triggers and why they're reported as locked indefinitely. - Assistant
Realtime triggers stay locked by design while running on a worker, so the monitor shouldn't treat them as blocked schedules. I'll skip them in
TriggerSchedulerMonitorand add a test. - Assistant
Fixed. Realtime triggers are intentionally kept locked while assigned to a worker, so the monitor was treating healthy running triggers as indefinitely blocked schedules.
Root cause
TriggerSchedulerMonitorchecks all locked triggers and warns when no execution is found viafindAllByTrigger. That logic fits schedulable triggers, which lock while waiting for an execution to be created.Realtime triggers behave differently:
- They are always locked once sent to a worker (
processWorkerTriggersetsmustBeLocked = trueforRealtimeTriggerInterface) - They stay locked for their entire lifetime on the worker
- Executions are created asynchronously as events arrive, not at lock time
So the monitor would keep logging
"No execution found, schedule is blocked since '...'"forever for any healthy realtime trigger. - They are always locked once sent to a worker (
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.