@@ -44,7 +44,7 @@ curl -X POST http://localhost:8080/api/worker/register \
4444 -H " Authorization: Bearer $DW_AUTH_TOKEN " \
4545 -H " Content-Type: application/json" \
4646 -H " X-Namespace: default" \
47- -H " X-Durable-Workflow-Protocol-Version: 1.0 " \
47+ -H " X-Durable-Workflow-Protocol-Version: 1.2 " \
4848 -d ' {"worker_id":"quickstart-worker","task_queue":"quickstart","runtime":"python"}'
4949```
5050
@@ -93,7 +93,7 @@ curl -X POST http://localhost:8080/api/worker/register \
9393 -H " Authorization: Bearer $DW_AUTH_TOKEN " \
9494 -H " Content-Type: application/json" \
9595 -H " X-Namespace: default" \
96- -H " X-Durable-Workflow-Protocol-Version: 1.0 " \
96+ -H " X-Durable-Workflow-Protocol-Version: 1.2 " \
9797 -d ' {"worker_id":"compose-worker","task_queue":"compose","runtime":"python"}'
9898```
9999
@@ -333,7 +333,7 @@ curl -X POST $SERVER/api/worker/register \
333333 -H " Authorization: Bearer $WORKER_TOKEN " \
334334 -H " Content-Type: application/json" \
335335 -H " X-Namespace: default" \
336- -H " X-Durable-Workflow-Protocol-Version: 1.0 " \
336+ -H " X-Durable-Workflow-Protocol-Version: 1.2 " \
337337 -d ' {
338338 "worker_id": "worker-1",
339339 "task_queue": "order-workers",
@@ -363,7 +363,7 @@ curl -X POST $SERVER/api/worker/workflow-tasks/poll \
363363 -H " Authorization: Bearer $WORKER_TOKEN " \
364364 -H " Content-Type: application/json" \
365365 -H " X-Namespace: default" \
366- -H " X-Durable-Workflow-Protocol-Version: 1.0 " \
366+ -H " X-Durable-Workflow-Protocol-Version: 1.2 " \
367367 -d ' {
368368 "worker_id": "worker-1",
369369 "task_queue": "order-workers"
@@ -374,7 +374,7 @@ The response includes the task, its history events, and lease metadata:
374374
375375``` json
376376{
377- "protocol_version" : " 1.0 " ,
377+ "protocol_version" : " 1.2 " ,
378378 "task" : {
379379 "task_id" : " task-xyz" ,
380380 "workflow_id" : " order-42" ,
@@ -400,7 +400,7 @@ curl -X POST $SERVER/api/worker/workflow-tasks/task-xyz/complete \
400400 -H " Authorization: Bearer $WORKER_TOKEN " \
401401 -H " Content-Type: application/json" \
402402 -H " X-Namespace: default" \
403- -H " X-Durable-Workflow-Protocol-Version: 1.0 " \
403+ -H " X-Durable-Workflow-Protocol-Version: 1.2 " \
404404 -d ' {
405405 "lease_owner": "worker-1",
406406 "workflow_task_attempt": 1,
@@ -422,7 +422,7 @@ curl -X POST $SERVER/api/worker/workflow-tasks/task-xyz/complete \
422422 -H " Authorization: Bearer $WORKER_TOKEN " \
423423 -H " Content-Type: application/json" \
424424 -H " X-Namespace: default" \
425- -H " X-Durable-Workflow-Protocol-Version: 1.0 " \
425+ -H " X-Durable-Workflow-Protocol-Version: 1.2 " \
426426 -d ' {
427427 "lease_owner": "worker-1",
428428 "workflow_task_attempt": 1,
@@ -445,15 +445,15 @@ curl -X POST $SERVER/api/worker/activity-tasks/poll \
445445 -H " Authorization: Bearer $WORKER_TOKEN " \
446446 -H " Content-Type: application/json" \
447447 -H " X-Namespace: default" \
448- -H " X-Durable-Workflow-Protocol-Version: 1.0 " \
448+ -H " X-Durable-Workflow-Protocol-Version: 1.2 " \
449449 -d ' {"worker_id": "worker-1", "task_queue": "order-workers"}'
450450
451451# Complete (use task_id and activity_attempt_id from the poll response)
452452curl -X POST $SERVER /api/worker/activity-tasks/TASK_ID/complete \
453453 -H " Authorization: Bearer $WORKER_TOKEN " \
454454 -H " Content-Type: application/json" \
455455 -H " X-Namespace: default" \
456- -H " X-Durable-Workflow-Protocol-Version: 1.0 " \
456+ -H " X-Durable-Workflow-Protocol-Version: 1.2 " \
457457 -d ' {
458458 "activity_attempt_id": "ATTEMPT_ID",
459459 "lease_owner": "worker-1",
@@ -667,8 +667,8 @@ manifests should fail closed.
667667- ` POST /api/worker/activity-tasks/{id}/fail ` — Fail activity task
668668- ` POST /api/worker/activity-tasks/{id}/heartbeat ` — Activity heartbeat
669669
670- Worker-plane requests must send ` X-Durable-Workflow-Protocol-Version: 1.0 ` , and
671- worker-plane responses always echo the same header plus ` protocol_version: "1.0 " ` .
670+ Worker-plane requests must send ` X-Durable-Workflow-Protocol-Version: 1.2 ` , and
671+ worker-plane responses always echo the same header plus ` protocol_version: "1.2 " ` .
672672Worker requests with bodies follow the same JSON media-type requirement as the
673673control plane and return a worker-protocol 415 response for XML, form, or other
674674non-JSON body formats.
@@ -811,7 +811,7 @@ future carriers can validate parser behavior without repository-local fixture
811811paths. A human-readable summary lives in
812812` docs/contracts/external-task-result.md ` .
813813
814- Within worker protocol version ` 1.0 ` , ` worker_protocol.version ` ,
814+ Within worker protocol version ` 1.2 ` , ` worker_protocol.version ` ,
815815` server_capabilities.long_poll_timeout ` , and
816816` server_capabilities.supported_workflow_task_commands ` are stable contract
817817fields. The command-option booleans under ` server_capabilities ` are additive
0 commit comments