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. The root cause: realtime triggers stay locked for their whole lifetime while running on a worker and never have an associated execution, so the monitor reports them as blocked forever. Fix: exclude
REALTIMEtriggers from monitoring. - Assistant
The Gradle build is running in the background. Let me wait for it to finish.
- Assistant
Gradle is still initializing. I'll wait for the monitor to report the build result.
- Assistant
I'll wait for the background task and monitor notifications instead of polling.
- Assistant
Waiting on the Gradle run — I'll continue once it finishes.
- Assistant
Changes are in place. Waiting for the test result now — I'll be notified when the Gradle run finishes.
- Assistant
Still resolving/compiling upstream modules. Waiting for monitor notifications — no further action needed until the build produces results.
- Assistant
Confirmed — IPv6 egress is broken but
_JAVA_OPTIONSforces Java to prefer IPv6, so every dependency download hangs. I'll stop the stalled build and relaunch with IPv4 preference. - Assistant
Downloads are flowing now (12 jars in the last 30s) and the scheduler test-results directory has been created. Waiting for the run to finish.
- Assistant
Both tests pass. Let me run the full scheduler test suite as a sanity check since dependencies are now cached:
- Assistant
While that runs, I'll save the environment quirk that stalled the build — it'll matter for every future Java build in this environment:
- Assistant
The suite is running — I'll report the outcome when the background task completes.
- Assistant
Waiting on the full
:scheduler:testrun to complete (background task will notify me). - Assistant
Waiting for the notification — no further polling needed.
- Assistant
All scheduler module tests pass —
BUILD SUCCESSFUL, 77 tests across 6 classes, 0 failures, including the 2 new tests.Summary
Root cause:
TriggerSchedulerMonitorpolls all locked triggers every 10s and warns"No execution found, schedule is blocked since '...'"when a locked trigger has no associated execution. Realtime triggers are locked by design for their entire lifetime — they run continuously on a worker and never produce an execution ID tied to the lock — so the monitor reported them as blocked indefinitely.Fix —
scheduler/src/main/java/io/kestra/scheduler/TriggerSchedulerMonitor.java:57: - Assistant
That's just the stale monitor from the first (killed, IPv6-stalled) build run timing out — no action needed. The fix is complete and verified: the full
:scheduler:testsuite already passed (77 tests, 0 failures), including the two newTriggerSchedulerMonitorTesttests. - Assistant
Another stale monitor timing out — it was watching the first Gradle process, which I killed after diagnosing the IPv6 stall. No re-arm needed; the task is done and verified (full scheduler suite green, 77 tests / 0 failures).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.