|
| 1 | +{ |
| 2 | + "schema": "durable-workflow.polyglot.control-plane-request-fixture", |
| 3 | + "version": 1, |
| 4 | + "operation": "workflow.start", |
| 5 | + "request": { |
| 6 | + "method": "POST", |
| 7 | + "path": "/workflows" |
| 8 | + }, |
| 9 | + "semantic_body": { |
| 10 | + "workflow_type": "orders.process", |
| 11 | + "workflow_id": "wf-polyglot-231", |
| 12 | + "task_queue": "orders", |
| 13 | + "input": [ |
| 14 | + { |
| 15 | + "order_id": 42, |
| 16 | + "priority": "gold" |
| 17 | + } |
| 18 | + ], |
| 19 | + "memo": { |
| 20 | + "source": "polyglot-fixture" |
| 21 | + }, |
| 22 | + "search_attributes": { |
| 23 | + "CustomerId": "cust-42", |
| 24 | + "Tier": "gold" |
| 25 | + }, |
| 26 | + "execution_timeout_seconds": 300, |
| 27 | + "run_timeout_seconds": 120, |
| 28 | + "duplicate_policy": "use-existing" |
| 29 | + }, |
| 30 | + "cli": { |
| 31 | + "argv": { |
| 32 | + "--type": "orders.process", |
| 33 | + "--workflow-id": "wf-polyglot-231", |
| 34 | + "--task-queue": "orders", |
| 35 | + "--input": "[{\"order_id\":42,\"priority\":\"gold\"}]", |
| 36 | + "--memo": "{\"source\":\"polyglot-fixture\"}", |
| 37 | + "--search-attr": [ |
| 38 | + "CustomerId=cust-42", |
| 39 | + "Tier=gold" |
| 40 | + ], |
| 41 | + "--execution-timeout": "300", |
| 42 | + "--run-timeout": "120", |
| 43 | + "--duplicate-policy": "use-existing" |
| 44 | + }, |
| 45 | + "expected_body": { |
| 46 | + "workflow_type": "orders.process", |
| 47 | + "workflow_id": "wf-polyglot-231", |
| 48 | + "task_queue": "orders", |
| 49 | + "duplicate_policy": "use-existing", |
| 50 | + "input": [ |
| 51 | + { |
| 52 | + "order_id": 42, |
| 53 | + "priority": "gold" |
| 54 | + } |
| 55 | + ], |
| 56 | + "memo": { |
| 57 | + "source": "polyglot-fixture" |
| 58 | + }, |
| 59 | + "execution_timeout_seconds": 300, |
| 60 | + "run_timeout_seconds": 120, |
| 61 | + "search_attributes": { |
| 62 | + "CustomerId": "cust-42", |
| 63 | + "Tier": "gold" |
| 64 | + } |
| 65 | + } |
| 66 | + }, |
| 67 | + "sdk_python": { |
| 68 | + "kwargs": { |
| 69 | + "workflow_type": "orders.process", |
| 70 | + "workflow_id": "wf-polyglot-231", |
| 71 | + "task_queue": "orders", |
| 72 | + "input": [ |
| 73 | + { |
| 74 | + "order_id": 42, |
| 75 | + "priority": "gold" |
| 76 | + } |
| 77 | + ], |
| 78 | + "memo": { |
| 79 | + "source": "polyglot-fixture" |
| 80 | + }, |
| 81 | + "search_attributes": { |
| 82 | + "CustomerId": "cust-42", |
| 83 | + "Tier": "gold" |
| 84 | + }, |
| 85 | + "execution_timeout_seconds": 300, |
| 86 | + "run_timeout_seconds": 120, |
| 87 | + "duplicate_policy": "use-existing" |
| 88 | + }, |
| 89 | + "expected_body": { |
| 90 | + "workflow_type": "orders.process", |
| 91 | + "workflow_id": "wf-polyglot-231", |
| 92 | + "task_queue": "orders", |
| 93 | + "duplicate_policy": "use-existing", |
| 94 | + "memo": { |
| 95 | + "source": "polyglot-fixture" |
| 96 | + }, |
| 97 | + "search_attributes": { |
| 98 | + "CustomerId": "cust-42", |
| 99 | + "Tier": "gold" |
| 100 | + }, |
| 101 | + "execution_timeout_seconds": 300, |
| 102 | + "run_timeout_seconds": 120 |
| 103 | + }, |
| 104 | + "payload_envelope": { |
| 105 | + "field": "input", |
| 106 | + "codec": "avro", |
| 107 | + "decoded": [ |
| 108 | + { |
| 109 | + "order_id": 42, |
| 110 | + "priority": "gold" |
| 111 | + } |
| 112 | + ] |
| 113 | + } |
| 114 | + } |
| 115 | +} |
0 commit comments