Skip to content

Adds scheduleIdleCloseTime#10439

Merged
davidporter-id-au merged 3 commits into
temporalio:mainfrom
davidporter-id-au:feat/adding-schedule-close-time
Jun 3, 2026
Merged

Adds scheduleIdleCloseTime#10439
davidporter-id-au merged 3 commits into
temporalio:mainfrom
davidporter-id-au:feat/adding-schedule-close-time

Conversation

@davidporter-id-au

@davidporter-id-au davidporter-id-au commented May 31, 2026

Copy link
Copy Markdown
Contributor

What changed?

This adds ScheduleCloseTime, the intent being it helps us identify scheduler problems through automatic scanners

Why?

There's a few cases where it's possible for the scheduler state-machines to transition to invalid states if bugs are present. Looking for the boundary at when we expect schedulers to fire helps us look for these invalid states.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

Should be fairly minimal, as again, this isn't a significant increase in the number of writes to visibility

@davidporter-id-au davidporter-id-au marked this pull request as ready for review June 1, 2026 00:02
@davidporter-id-au davidporter-id-au requested a review from a team as a code owner June 1, 2026 00:02
Comment on lines 71 to +73
const ScheduleNextActionTimeName = "ScheduleNextActionTime"

const ScheduleIdleCloseTimeName = "ScheduleIdleCloseTime"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) imo group these constants

@davidporter-id-au davidporter-id-au left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing ignore me, doing boomer things getting use to github's online editor

@davidporter-id-au davidporter-id-au enabled auto-merge (squash) June 3, 2026 03:42
@davidporter-id-au davidporter-id-au merged commit 32984de into temporalio:main Jun 3, 2026
49 checks passed
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