Skip to content

Conversation

@yuandrew
Copy link
Contributor

@yuandrew yuandrew commented Nov 10, 2025

What was changed

Rename WorkerShutdown to BumpStream, also handle shutdown() case

Why?

merged #1055 before spencer got his PR feedback in

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

Note

Renames the workflow local input from WorkerShutdown to BumpStream and uses it to bump/resolve pending activation polls, including during shutdown.

  • Workflow/Worker internals:
    • Rename LocalInputs::WorkerShutdownLocalInputs::BumpStream, update all matches and comments in workflow_stream.rs.
    • Replace send_worker_shutdown() with bump_stream() in Workflows; adjust docs and call sites.
    • Use bump_stream() to drive the workflow stream during Workflows::shutdown() instead of polling state; Worker::initiate_shutdown() now pushes a bump to unblock activation polls.

Written by Cursor Bugbot for commit 2572c62. This will update automatically on new commits. Configure here.

@yuandrew yuandrew requested a review from a team as a code owner November 10, 2025 20:30
None
}
LocalInputs::WorkerShutdown => {
LocalInputs::BumpStream => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment here needs some touch ups to properly align with the change in name.

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

@yuandrew yuandrew merged commit 850db67 into temporalio:master Nov 10, 2025
34 of 35 checks passed
@yuandrew yuandrew deleted the bump-stream branch November 10, 2025 22:41
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