Skip to content

Extract common worker commands dispatch logic - #10658

Closed
rkannan82 wants to merge 6 commits into
mainfrom
kannan/extract-worker-commands-dispatch
Closed

Extract common worker commands dispatch logic#10658
rkannan82 wants to merge 6 commits into
mainfrom
kannan/extract-worker-commands-dispatch

Conversation

@rkannan82

@rkannan82 rkannan82 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What

Extract the Nexus dispatch-to-worker and error handling logic into a shared common/workercommands package, so both workflow-based and standalone activity cancel command dispatch can reuse it.

How did you test it?

  • Existing unit tests

🤖 Generated with Claude Code

rkannan82 and others added 5 commits May 11, 2026 11:41
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The Nexus dispatch-to-worker and error handling logic was duplicated between
service/history (workflow-based activities) and chasm/lib/activity (standalone).
Extract into common/workercommands so both can share it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tests cover DispatchToWorker (success, RPC error, upstream timeout, worker
failure, non-retryable handler error, transport error, multiple commands) and
HandleDispatchError (all error classification paths including CanceledError).
Moved HandleDispatchError tests from service/history since the logic now
lives in the shared package.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Base automatically changed from kannan/move-dispatch-response-to-error to main June 24, 2026 18:43
@rkannan82

Copy link
Copy Markdown
Contributor Author

Closing — this work landed on main via #10849.

@rkannan82 rkannan82 closed this Jul 1, 2026
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