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 trace the monitor’s lock detection and trigger state model first. Success is that realtime triggers without an execution ID are excluded without weakening genuine blocked-schedule detection, covered by a focused regression test and the relevant module tests. I’ll keep the change surgical; likely alternatives are filtering in the monitor versus changing shared state semantics, with monitor-local filtering safer unless the model clearly defines otherwise.
- Assistant
rgis unavailable in this checkout, so I’m using targetedfind/grepsearches instead. I’m also checking the worktree state before editing so unrelated local changes remain untouched. - Assistant
The model already carries an explicit
TriggerType.REALTIME, and realtime states are intentionally locked while their worker listens; that lock does not represent an in-flight execution. The safest fix is therefore monitor-local exclusion before repository lookup. Changing repository eligibility would affect scheduler behavior globally, while checking timestamps or repository results would preserve the false positive. I’m building a unit regression around that boundary and retaining coverage for a non-realtime locked state. - Assistant
The implementation and focused regression test are in place. The test deliberately returns one locked realtime state and one locked schedule state, proving the realtime state never reaches execution lookup while normal monitoring still does. The targeted Gradle test is compiling now.
- Assistant
The Gradle invocation is still active and has not emitted a failure; this repository’s configuration/compilation phase is taking longer than the test itself. I’m continuing to wait on the same build rather than starting duplicate Gradle work.
- Assistant
The build remains CPU-active in Gradle’s initial configuration phase, so it is progressing rather than deadlocked. No diagnostics have appeared yet. I’ll let the mandatory targeted test finish, then run a compile/check pass and inspect the final diff.
- Assistant
I found the delay: Gradle is attempting remote plugin metadata resolution during project configuration. Since this task must stay local-only, I’m stopping that attempt and rerunning in
--offlinemode against the existing dependency cache. - Assistant
Offline verification exposed an environment limitation: the cache lacks
org.mockito:mockito-core:5.23.0, so Gradle cannot even create the scheduler test task. I won’t fetch it externally. I’m proceeding with an offline production compile (which does not need the missing test agent), then I’ll do static test-source checks and report the exact test limitation. - Assistant
Production compilation now passes offline. The targeted test remains unexecutable only because the required Mockito 5.23.0 artifact is absent from the local cache; Gradle fails during test-task creation before compiling any tests. I’ve completed the final surgical diff and whitespace review.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.