Skip to content

Default scheduler and hearing-lookup flags to disabled - #210

Merged
rkakumanuhmcts merged 1 commit into
mainfrom
scheduler_disable
Jul 31, 2026
Merged

Default scheduler and hearing-lookup flags to disabled#210
rkakumanuhmcts merged 1 commit into
mainfrom
scheduler_disable

Conversation

@rkakumanuhmcts

Copy link
Copy Markdown
Contributor

Summary

  • Restores false defaults for CP_CDK_SCHEDULER_INTRADAY_DISCOVERY_ENABLED, CP_CDK_SCHEDULER_NIGHTLY_DISCOVERY_ENABLED, and CP_CDK_HEARING_IS_HEARING_FOR_CASES_ENABLED, which had reverted to true on main.
  • Root cause: the disable-by-default fix (Default scheduler and hearing-lookup flags to disabled #208) was merged only into release_2623. develop was merged into main separately (Merge from develop to main for release2623 #209) without ever incorporating release_2623's fix, so main (and develop) kept shipping with these flags on by default.
  • Adds a permanent low-priority WireMock stub for /hearing-cases-for-day (empty hearingCases response), matching the existing pattern used for /hearings. Fixes an intermittent 404 ("closest stub not matching") in CI integration tests: background scheduler cron ticks in the docker-compose stack were hitting this endpoint before NightlyDiscoverySchedulerLiveTest registered its own dynamic stub.

Test plan

  • gradle integration --tests "*NightlyDiscoverySchedulerLiveTest*" --tests "*IntradayDiscoverySchedulerLiveTest*" — all 6 tests pass (3 per class, 0 failures/errors) against the docker-compose stack.
  • Full gradle clean build / CI pipeline run.
  • Separately port this same flag-default fix into develop so it doesn't regress on the next release merge to main.

🤖 Generated with Claude Code

CP_CDK_SCHEDULER_INTRADAY_DISCOVERY_ENABLED, CP_CDK_SCHEDULER_NIGHTLY_DISCOVERY_ENABLED,
and CP_CDK_HEARING_IS_HEARING_FOR_CASES_ENABLED defaulted to true on main. The disable-by-
default fix (#208) had only landed on release_2623, which was never merged into develop
before develop was merged to main (#209), so main and develop both still shipped with the
flags on. Restores the false defaults so the features must be explicitly enabled per
environment.

Also adds a permanent low-priority WireMock stub for /hearing-cases-for-day (empty
hearingCases response) alongside the existing pattern for /hearings. Background scheduler
cron ticks in the docker-compose integration stack were hitting this endpoint before
NightlyDiscoverySchedulerLiveTest registered its own dynamic stub, causing an intermittent
404 ("closest stub not matching") in CI; the fallback stub ensures a match is always
available.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@rkakumanuhmcts
rkakumanuhmcts requested a review from a team as a code owner July 31, 2026 07:57
@rkakumanuhmcts
rkakumanuhmcts merged commit fd8f4c8 into main Jul 31, 2026
9 checks passed
@rkakumanuhmcts
rkakumanuhmcts deleted the scheduler_disable branch July 31, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants