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
Success means the monitor no longer emits “schedule is blocked” for realtime triggers that intentionally hold a lock without an execution ID, while scheduled/polling trigger lock detection remains unchanged and covered by a regression test.
Assumption: the reliable discriminator is the trigger’s runtime/type metadata already available to
TriggerSchedulerMonitor, not merely a missing execution ID—because a genuinely stuck non-realtime trigger could also lack one. I’ll first trace the monitor and lock model, then make the smallest targeted change and run the relevant module tests. - Assistant
rgis not installed in this checkout, so I’m falling back to a scopedgrepsearch. The key design choice is still to identify realtime triggers explicitly; filtering all locks with a null execution ID would hide legitimate scheduler failures. - Assistant
The state model already persists
TriggerType.REALTIME, so no flow/plugin lookup is needed. I’m choosing a monitor-local filter before repository and metric work. Moving the rule intoTriggerStateStorewould broaden repository behavior and require an interface change; treating null type as realtime would also risk masking older or malformed scheduled states.The regression test will use a mixed locked-state list and prove that the scheduled state is still inspected while the realtime state is ignored.
- Assistant
The implementation and regression test are in place. The focused scheduler test is compiling now; after it completes I’ll inspect the final diff and run any formatting/static checks exposed by the module build.
- Assistant
The focused Gradle run is still active but has produced no additional output, which is typical while this large multi-project build configures and compiles. There is no failure so far; I’m continuing to wait on the same test process rather than restarting it.
- Assistant
The Gradle daemon is healthy and consuming CPU; it is still in configuration/compilation rather than hung. This checkout’s wrapper is Gradle 9.4.1 despite the repository guidance mentioning 8.x, so the initial configuration is unusually slow, but I’m letting the mandatory test finish.
- Assistant
I found the delay’s actual cause: Gradle is trying to resolve a missing plugin over HTTP during project configuration. Since this task explicitly forbids internet/external sources, I’m stopping that attempt and rerunning in offline mode so verification uses only the repository and local dependency cache.
- Assistant
Offline verification exposed a local-cache limitation, not a code failure:
org.mockito:mockito-core:5.23.0is absent, so Gradle cannot even create the scheduler test task. I’ll still run offline production compilation, then inspect the test source/diff manually; I won’t fetch the missing artifact. - Assistant
Production compilation passes offline, and
git diff --checkreports no whitespace errors. The focused test cannot run in this environment solely because the required Mockito 5.23.0 artifact is not locally cached; the regression test remains added for CI, where the declared test dependency is available.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.