Skip to content

encode schedules behavior with workflow pause#10807

Draft
spkane31 wants to merge 4 commits into
mainfrom
spk/schedules-pause-wf-interaction
Draft

encode schedules behavior with workflow pause#10807
spkane31 wants to merge 4 commits into
mainfrom
spk/schedules-pause-wf-interaction

Conversation

@spkane31

Copy link
Copy Markdown
Contributor

What changed?

Adding tests to validate the OverlapPolicy behavior with paused workflows.

Why?

In preparation for a workflow pause release, encoding the overlap policy and workflow pause interactions operate the same for CHASM and V1 schedules.

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

Test changes only

return true
case enumspb.SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER:
// CHASM terminates the paused workflow and continues; V1 stalls (bug).
return isCHASM

@spkane31 spkane31 Jun 22, 2026

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.

This is the bug that I found w/ claude assistance. In v1 schedules the schedules workflow is stuck, but CHASM will deliver the termination command.

As a larger point, the TERMINATE_OTHER policy does not work well with workflow pause because a termination requires a workflow task to dispatch, which in turn requires the workflow to be unpaused.

@spkane31 spkane31 force-pushed the spk/schedules-pause-wf-interaction branch from c126228 to 33dbba8 Compare June 22, 2026 22:21
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.

1 participant