Skip to content

Fix Go worker heartbeat cancellation handling#68535

Open
jx2lee wants to merge 1 commit into
apache:mainfrom
jx2lee:jx2lee/gosdk-handle-hearbeat-cancellation
Open

Fix Go worker heartbeat cancellation handling#68535
jx2lee wants to merge 1 commit into
apache:mainfrom
jx2lee:jx2lee/gosdk-handle-hearbeat-cancellation

Conversation

@jx2lee

@jx2lee jx2lee commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Worker cancels the task context with ErrTaskCancelledAfterFailedHeartbeat, but final state handling checked taskContext.Err() instead of context.Cause(...). This could miss the cancellation reason and report the wrong final state.

Added a worker test for the 409 heartbeat cancellation path.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: OpenAI Codex following the guidelines

@jx2lee jx2lee force-pushed the jx2lee/gosdk-handle-hearbeat-cancellation branch from 87b8c84 to 14b7656 Compare June 14, 2026 21:24
@jx2lee jx2lee force-pushed the jx2lee/gosdk-handle-hearbeat-cancellation branch from 14b7656 to 972b026 Compare June 14, 2026 21:52
@jx2lee jx2lee marked this pull request as ready for review June 14, 2026 21:52
@jx2lee jx2lee requested review from amoghrajesh and ashb as code owners June 14, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant