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 blocked-trigger logic and its existing tests first. Success means realtime triggers without an execution ID are excluded from this warning while scheduled-trigger monitoring remains unchanged, with a focused regression test and module build passing. I’ll keep the change surgical; likely alternatives are filtering at query time versus guarding in the monitor, and I’ll choose based on where trigger type information is reliably available.
- Assistant
rgisn’t installed in this checkout, so I’m falling back to targetedgrep/findsearches and will inspect the repository’s local guidance before editing. - Assistant
The trigger state already carries a reliable
TriggerTypeenum, and realtime states are intentionally locked as part of their lifecycle. That makes the monitor boundary the right fix: skipREALTIMEstates before querying executions or emitting missing-execution metrics/logs. Changing the store query would mix monitoring policy into shared scheduling eligibility semantics. I’m adding a focused unit test that proves realtime states are ignored and ordinary schedule states are still inspected. - Assistant
The implementation and regression tests are in place. The targeted scheduler test is compiling/running now; after it passes I’ll run the broader scheduler test suite (or diagnose any local infrastructure constraint) and inspect the final diff for unrelated changes.
- Assistant
Gradle is still in its configuration/compilation phase and hasn’t emitted additional output; the process remains active. The source change itself passes whitespace validation. I’m continuing to wait on the mandatory test rather than treating the quiet build as success.
- Assistant
The build is genuinely active (the Gradle daemon is consuming CPU), not hung waiting for input. This monorepo’s configuration is simply quiet and slow in this environment. I’ll let the targeted test finish, then avoid duplicating expensive work: if it passes, I’ll use the scheduler module’s compile/test result plus a final diff/status audit as verification.
- Assistant
The thread dump revealed Gradle was trying to resolve a build plugin over HTTP during project configuration. Since this task explicitly forbids internet use, I’m stopping that attempt and rerunning in Gradle offline mode against the local dependency cache. If a required artifact is absent, I’ll report that exact verification constraint rather than allowing external resolution.
- Assistant
Offline verification exposed a precise cache limitation:
org.mockito:mockito-core:5.23.0is not present locally, so Gradle cannot even create the scheduler test task. I’m still running the production compile offline, then I’ll perform static/test-source checks and a final status audit. The regression test remains valuable for CI, where the declared test dependency is available. - Assistant
Production compilation now passes offline. The final audit shows exactly two intended files changed, no whitespace errors, and no unrelated workspace modifications. The only incomplete verification is executing the new Mockito-based test, blocked before compilation by the missing locally cached Mockito artifact; no product-code failure occurred.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.