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
No existing test for the monitor. Now implementing the fix — filter out realtime triggers before checking for a matching execution:
- Assistant
Now the unit test:
- Assistant
Waiting for the Gradle test run to finish.
- Assistant
While waiting, let me double-check the final state of the fixed file:
- Assistant
The fix and test are written; the Gradle test run is still compiling in the background. I'll report as soon as it completes.
- Assistant
The Gradle build is running (output is piped through
tailso it appears only at completion). Waiting for it to finish. - Assistant
I'll wait for the background task notifications rather than polling further.
- Assistant
I have a monitor armed on the build output. I'll stop polling and let it notify me when the test run completes.
- Assistant
The build is hanging on network access to a remote Maven repository (sandboxed environment). Let me retry in offline mode using the local dependency cache:
- Assistant
First run was killed as intended. Now waiting on the offline run.
- Assistant
Compilation is progressing. Waiting for completion.
- Assistant
Both tests pass —
BUILD SUCCESSFUL, 2/2 passing. The fix is complete.Summary
Problem:
TriggerSchedulerMonitorwarned"No execution found, schedule is blocked since '...'"every 10 seconds for realtime triggers. Realtime triggers stay locked for their entire lifetime while running on a worker (they aren't tied to a single execution — cf. howTriggerEventHandlerkills them viaExecutionKilledTriggerrather than an execution ID), so they were reported as blocked indefinitely, and the missing-execution metric was polluted.Fix in — skip trigger states before the execution lookup:
- Assistant
That's the stale monitor from the first (killed) Gradle run timing out — no action needed. The task is already complete: the fix is in
TriggerSchedulerMonitor.javaand both tests inTriggerSchedulerMonitorTestpassed in the successful run (BUILD SUCCESSFUL in 1m 3s).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.