Skip to content

Fix The Issue That Python Operators Cannot Be Paused And Resumed - #2590

Merged
kunwp1 merged 5 commits into
masterfrom
chris-bugfix-python-pause
Apr 9, 2024
Merged

kunwp1 merged 5 commits into
masterfrom
chris-bugfix-python-pause

Conversation

@kunwp1

@kunwp1 kunwp1 commented Apr 9, 2024

Copy link
Copy Markdown
Contributor

This pull request addresses an issue preventing Python operators from properly pausing and resuming. The problem was traced back to a modification made in PR #2570, where the return type of the ControlReturnV2 message no longer included WorkerState. As a result, the async RPC server was unable to process the message. This PR fixes the issue by adding WorkerState back as a valid return type for ControlReturnV2. Now, both the pause and resume handlers will return a message that reflects the worker's current state.

@kunwp1
kunwp1 requested a review from shengquan-ni April 9, 2024 19:01
@kunwp1 kunwp1 self-assigned this Apr 9, 2024
@kunwp1 kunwp1 added the bug label Apr 9, 2024
@kunwp1
kunwp1 marked this pull request as ready for review April 9, 2024 19:55
@kunwp1
kunwp1 merged commit 27669a1 into master Apr 9, 2024
@kunwp1
kunwp1 deleted the chris-bugfix-python-pause branch April 9, 2024 21:00
@Yicong-Huang Yicong-Huang added fix and removed bug labels Oct 4, 2025
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…che#2590)

This pull request addresses an issue preventing Python operators from
properly pausing and resuming. The problem was traced back to a
modification made in PR apache#2570, where the return type of the
ControlReturnV2 message no longer included WorkerState. As a result, the
async RPC server was unable to process the message. This PR fixes the
issue by adding WorkerState back as a valid return type for
ControlReturnV2. Now, both the pause and resume handlers will return a
message that reflects the worker's current state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants