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 and why they're reported as locked. - Assistant
Implementing the fix: realtime triggers stay locked while the worker runs, so the monitor should skip them.
- Assistant
Implementing the fix and adding tests.
- Assistant
Fixed. Realtime triggers are intentionally kept locked while a worker runs them (
TriggerScheduler.processWorkerTrigger), so they never have a single associated execution for the monitor to find. That caused the indefinite "schedule is blocked" warnings.Root cause
TriggerSchedulerMonitorchecks all locked triggers and warns when no execution exists. Realtime triggers (e.g. Kafka) stay locked for their entire lifetime on the worker and may not have created any execution yet — that is expected, not a blocked schedule.Fix
Skip
TriggerType.REALTIMEtriggers in the monitor, using the existingTriggerTypeonTriggerState(no new interfaces):62:64:scheduler/src/main/java/io/kestra/scheduler/TriggerSchedulerMonitor.javatriggers.stream() .filter(state -> !TriggerType.REALTIME.equals(state.getType())) .forEach(state ->
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.