Files
temporal/api
Kannan 4997c93fa8 Store worker attributes needed by server to propagate nexus tasks to worker (#9231)
## What changed?
As part of RecordActivityTaskStarted flow, store
worker_control_task_queue for an activity in the mutable state
(ActivityInfo).

Main changes:
- executions.proto: Added the new worker_control_task_queue field.
- mutable_state_impl.go: Update mutable state.
- matching/forwarder.go: Propagate worker_control_task_queue when polls
get forwarded. Otherwise, RecordActivityTaskStarted request will not
have it set when invoked from a forwarded poll.

## Why?
To support activity cancellation without activity heartbeat.

Overall flow:
- [This PR] Store worker attributes in ActivityInfo as part of
RecordActivityTaskStarted call.
- [#9232] When user cancels a workflow, create 1 or more tasks. Group
all activities belonging to a worker into the task (for efficiency).
- [#9233] Lookup the Nexus task queue for each worker, and send a Nexus
operation for each transfer task.
- [SDK] Worker will receive this cancel task and cancel the running
activities.

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [ ] added new functional test(s)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 17:51:46 -07:00
..
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00