Skip to content

activity/shutdown: Increase timeout for ScheduleToClose for succeeding workflow#750

Merged
yuandrew merged 2 commits intotemporalio:mainfrom
yuandrew:improve-shutdown-flake
Feb 11, 2026
Merged

activity/shutdown: Increase timeout for ScheduleToClose for succeeding workflow#750
yuandrew merged 2 commits intotemporalio:mainfrom
yuandrew:improve-shutdown-flake

Conversation

@yuandrew
Copy link
Contributor

@yuandrew yuandrew commented Feb 10, 2026

What was changed

Create separate timeout 30s for the successing/failing workflows, while keeping the ignore workflow at 300ms. This should not increase the time it takes for tests to finish, but should reduce the raciness, if cancellSuccess/cancelFailure couldn't ocmplete within 300ms

Change TS to use setTimeout to not react to cancellation.

Why?

Reduce test flakes

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@yuandrew yuandrew requested a review from a team as a code owner February 10, 2026 00:13
@yuandrew yuandrew force-pushed the improve-shutdown-flake branch from a7784e5 to 03985d9 Compare February 10, 2026 00:28
Copy link
Contributor

@mjameswh mjameswh left a comment

Choose a reason for hiding this comment

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

LGTM

};
var ignoreOptions = new ActivityOptions
{
ScheduleToCloseTimeout = TimeSpan.FromSeconds(2),
Copy link
Member

Choose a reason for hiding this comment

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

Can this go back to 300ms? No need to add an extra 1.7s to the tests right? The other tests do just fine confirming that worker shutdown is delivered.

@yuandrew yuandrew changed the title activity/shutdown: Increase timeout for ScheduleToClose activity/shutdown: Increase timeout for ScheduleToClose for succeeding workflow Feb 10, 2026
@yuandrew yuandrew requested a review from cretz February 10, 2026 21:47
@yuandrew yuandrew merged commit 281c291 into temporalio:main Feb 11, 2026
21 checks passed
@yuandrew yuandrew deleted the improve-shutdown-flake branch February 11, 2026 16:51
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.

3 participants