Commit c3c6bd7
Add attributes needed by server to propagate control tasks to worker (#711)
<!-- Describe what has changed in this PR -->
**What changed?**
Added worker_control_task_queue to poll requests:
- PollActivityTaskQueueRequest
- PollWorkflowTaskQueueRequest
Note: worker_instance_key was already added to these requests in #686.
Added worker_instance_key and worker_control_task_queue to:
- RespondWorkflowTaskCompletedRequest: This API is used to eagerly fetch
activity.
<!-- Tell your future self why have you made these changes -->
**Why?**
To enable server to send control tasks to worker. Each worker provides a
worker_control_task_queue (a dedicated per-worker Nexus task queue) so
the server can send control tasks directly to it.
Example flow:
- User cancels a workflow.
- Server sends activity cancellation tasks to all workers that could be
processing activities belonging to that workflow.
- Worker will receive the cancellation message even when activity
heartbeat is not enabled.
<!-- Are there any breaking changes on binary or code level? -->
Breaking changes: None
[Server PR](temporalio/temporal#9231)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0393ada commit c3c6bd7
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
268 | 273 | | |
269 | 274 | | |
270 | 275 | | |
| |||
385 | 390 | | |
386 | 391 | | |
387 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
388 | 401 | | |
389 | 402 | | |
390 | 403 | | |
| |||
450 | 463 | | |
451 | 464 | | |
452 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
453 | 471 | | |
454 | 472 | | |
455 | 473 | | |
| |||
0 commit comments