@temporalio/core-bridge 1.12.2 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/releases/aarch64-apple-darwin/index.node +0 -0
- package/releases/aarch64-unknown-linux-gnu/index.node +0 -0
- package/releases/x86_64-apple-darwin/index.node +0 -0
- package/releases/x86_64-pc-windows-msvc/index.node +0 -0
- package/releases/x86_64-unknown-linux-gnu/index.node +0 -0
- package/sdk-core/.cargo/config.toml +1 -1
- package/sdk-core/client/src/callback_based.rs +123 -0
- package/sdk-core/client/src/lib.rs +96 -28
- package/sdk-core/client/src/metrics.rs +33 -5
- package/sdk-core/client/src/raw.rs +40 -1
- package/sdk-core/client/src/retry.rs +12 -3
- package/sdk-core/core/src/lib.rs +4 -2
- package/sdk-core/core/src/pollers/poll_buffer.rs +62 -14
- package/sdk-core/core/src/worker/client.rs +9 -5
- package/sdk-core/core/src/worker/heartbeat.rs +3 -1
- package/sdk-core/core-api/src/worker.rs +2 -2
- package/sdk-core/core-c-bridge/Cargo.toml +2 -0
- package/sdk-core/core-c-bridge/include/temporal-sdk-core-c-bridge.h +105 -0
- package/sdk-core/core-c-bridge/src/client.rs +265 -8
- package/sdk-core/core-c-bridge/src/tests/context.rs +11 -0
- package/sdk-core/core-c-bridge/src/tests/mod.rs +179 -3
- package/sdk-core/sdk-core-protos/protos/api_cloud_upstream/CODEOWNERS +1 -1
- package/sdk-core/sdk-core-protos/protos/api_cloud_upstream/README.md +1 -1
- package/sdk-core/sdk-core-protos/protos/api_cloud_upstream/VERSION +1 -1
- package/sdk-core/sdk-core-protos/protos/api_cloud_upstream/buf.yaml +1 -0
- package/sdk-core/sdk-core-protos/protos/api_cloud_upstream/temporal/api/cloud/cloudservice/v1/request_response.proto +83 -0
- package/sdk-core/sdk-core-protos/protos/api_cloud_upstream/temporal/api/cloud/cloudservice/v1/service.proto +37 -0
- package/sdk-core/sdk-core-protos/protos/api_cloud_upstream/temporal/api/cloud/connectivityrule/v1/message.proto +64 -0
- package/sdk-core/sdk-core-protos/protos/api_cloud_upstream/temporal/api/cloud/identity/v1/message.proto +3 -1
- package/sdk-core/sdk-core-protos/protos/api_cloud_upstream/temporal/api/cloud/namespace/v1/message.proto +10 -0
- package/sdk-core/sdk-core-protos/protos/api_cloud_upstream/temporal/api/cloud/operation/v1/message.proto +1 -0
- package/sdk-core/sdk-core-protos/protos/api_upstream/openapi/openapiv2.json +644 -9
- package/sdk-core/sdk-core-protos/protos/api_upstream/openapi/openapiv3.yaml +635 -21
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/batch/v1/message.proto +60 -2
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/common/v1/message.proto +84 -15
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/enums/v1/batch_operation.proto +3 -0
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/enums/v1/task_queue.proto +11 -0
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/history/v1/message.proto +5 -0
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/sdk/v1/task_complete_metadata.proto +1 -1
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/sdk/v1/worker_config.proto +36 -0
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/taskqueue/v1/message.proto +29 -0
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/worker/v1/message.proto +11 -1
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/workflowservice/v1/request_response.proto +122 -4
- package/sdk-core/sdk-core-protos/protos/api_upstream/temporal/api/workflowservice/v1/service.proto +41 -0
- package/sdk-core/sdk-core-protos/src/lib.rs +5 -1
- package/sdk-core/test-utils/Cargo.toml +1 -0
- package/sdk-core/test-utils/src/lib.rs +90 -3
- package/sdk-core/tests/cloud_tests.rs +11 -74
- package/sdk-core/tests/integ_tests/client_tests.rs +14 -10
- package/sdk-core/tests/integ_tests/worker_tests.rs +8 -2
- package/sdk-core/tests/integ_tests/workflow_tests/activities.rs +13 -0
- package/sdk-core/tests/integ_tests/workflow_tests/priority.rs +2 -108
- package/sdk-core/tests/main.rs +3 -0
- package/sdk-core/tests/shared_tests/mod.rs +43 -0
- package/sdk-core/tests/shared_tests/priority.rs +155 -0
- package/src/client.rs +5 -0
|
@@ -1529,6 +1529,13 @@
|
|
|
1529
1529
|
"required": false,
|
|
1530
1530
|
"type": "boolean"
|
|
1531
1531
|
},
|
|
1532
|
+
{
|
|
1533
|
+
"name": "reportConfig",
|
|
1534
|
+
"description": "Report Task Queue Config",
|
|
1535
|
+
"in": "query",
|
|
1536
|
+
"required": false,
|
|
1537
|
+
"type": "boolean"
|
|
1538
|
+
},
|
|
1532
1539
|
{
|
|
1533
1540
|
"name": "includeTaskQueueStatus",
|
|
1534
1541
|
"description": "Deprecated, use `report_stats` instead.\nIf true, the task queue status will be included in the response.",
|
|
@@ -1610,6 +1617,52 @@
|
|
|
1610
1617
|
]
|
|
1611
1618
|
}
|
|
1612
1619
|
},
|
|
1620
|
+
"/api/v1/namespaces/{namespace}/task-queues/{taskQueue}/update-config": {
|
|
1621
|
+
"post": {
|
|
1622
|
+
"summary": "Updates task queue configuration.\nFor the overall queue rate limit: the rate limit set by this api overrides the worker-set rate limit,\nwhich uncouples the rate limit from the worker lifecycle.\nIf the overall queue rate limit is unset, the worker-set rate limit takes effect.",
|
|
1623
|
+
"operationId": "UpdateTaskQueueConfig2",
|
|
1624
|
+
"responses": {
|
|
1625
|
+
"200": {
|
|
1626
|
+
"description": "A successful response.",
|
|
1627
|
+
"schema": {
|
|
1628
|
+
"$ref": "#/definitions/v1UpdateTaskQueueConfigResponse"
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
"default": {
|
|
1632
|
+
"description": "An unexpected error response.",
|
|
1633
|
+
"schema": {
|
|
1634
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1638
|
+
"parameters": [
|
|
1639
|
+
{
|
|
1640
|
+
"name": "namespace",
|
|
1641
|
+
"in": "path",
|
|
1642
|
+
"required": true,
|
|
1643
|
+
"type": "string"
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
"name": "taskQueue",
|
|
1647
|
+
"description": "Selects the task queue to update.",
|
|
1648
|
+
"in": "path",
|
|
1649
|
+
"required": true,
|
|
1650
|
+
"type": "string"
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"name": "body",
|
|
1654
|
+
"in": "body",
|
|
1655
|
+
"required": true,
|
|
1656
|
+
"schema": {
|
|
1657
|
+
"$ref": "#/definitions/WorkflowServiceUpdateTaskQueueConfigBody"
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
],
|
|
1661
|
+
"tags": [
|
|
1662
|
+
"WorkflowService"
|
|
1663
|
+
]
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1613
1666
|
"/api/v1/namespaces/{namespace}/task-queues/{taskQueue}/worker-build-id-compatibility": {
|
|
1614
1667
|
"get": {
|
|
1615
1668
|
"summary": "Deprecated. Use `GetWorkerVersioningRules`.\nFetches the worker build id versioning sets for a task queue.",
|
|
@@ -2243,6 +2296,46 @@
|
|
|
2243
2296
|
]
|
|
2244
2297
|
}
|
|
2245
2298
|
},
|
|
2299
|
+
"/api/v1/namespaces/{namespace}/workers/fetch-config": {
|
|
2300
|
+
"post": {
|
|
2301
|
+
"summary": "FetchWorkerConfig returns the worker configuration for a specific worker.",
|
|
2302
|
+
"operationId": "FetchWorkerConfig2",
|
|
2303
|
+
"responses": {
|
|
2304
|
+
"200": {
|
|
2305
|
+
"description": "A successful response.",
|
|
2306
|
+
"schema": {
|
|
2307
|
+
"$ref": "#/definitions/v1FetchWorkerConfigResponse"
|
|
2308
|
+
}
|
|
2309
|
+
},
|
|
2310
|
+
"default": {
|
|
2311
|
+
"description": "An unexpected error response.",
|
|
2312
|
+
"schema": {
|
|
2313
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
},
|
|
2317
|
+
"parameters": [
|
|
2318
|
+
{
|
|
2319
|
+
"name": "namespace",
|
|
2320
|
+
"description": "Namespace this worker belongs to.",
|
|
2321
|
+
"in": "path",
|
|
2322
|
+
"required": true,
|
|
2323
|
+
"type": "string"
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
"name": "body",
|
|
2327
|
+
"in": "body",
|
|
2328
|
+
"required": true,
|
|
2329
|
+
"schema": {
|
|
2330
|
+
"$ref": "#/definitions/WorkflowServiceFetchWorkerConfigBody"
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
],
|
|
2334
|
+
"tags": [
|
|
2335
|
+
"WorkflowService"
|
|
2336
|
+
]
|
|
2337
|
+
}
|
|
2338
|
+
},
|
|
2246
2339
|
"/api/v1/namespaces/{namespace}/workers/heartbeat": {
|
|
2247
2340
|
"post": {
|
|
2248
2341
|
"summary": "WorkerHeartbeat receive heartbeat request from the worker.",
|
|
@@ -2283,6 +2376,46 @@
|
|
|
2283
2376
|
]
|
|
2284
2377
|
}
|
|
2285
2378
|
},
|
|
2379
|
+
"/api/v1/namespaces/{namespace}/workers/update-config": {
|
|
2380
|
+
"post": {
|
|
2381
|
+
"summary": "UpdateWorkerConfig updates the worker configuration of one or more workers.\nCan be used to partially update the worker configuration.\nCan be used to update the configuration of multiple workers.",
|
|
2382
|
+
"operationId": "UpdateWorkerConfig2",
|
|
2383
|
+
"responses": {
|
|
2384
|
+
"200": {
|
|
2385
|
+
"description": "A successful response.",
|
|
2386
|
+
"schema": {
|
|
2387
|
+
"$ref": "#/definitions/v1UpdateWorkerConfigResponse"
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
"default": {
|
|
2391
|
+
"description": "An unexpected error response.",
|
|
2392
|
+
"schema": {
|
|
2393
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
},
|
|
2397
|
+
"parameters": [
|
|
2398
|
+
{
|
|
2399
|
+
"name": "namespace",
|
|
2400
|
+
"description": "Namespace this worker belongs to.",
|
|
2401
|
+
"in": "path",
|
|
2402
|
+
"required": true,
|
|
2403
|
+
"type": "string"
|
|
2404
|
+
},
|
|
2405
|
+
{
|
|
2406
|
+
"name": "body",
|
|
2407
|
+
"in": "body",
|
|
2408
|
+
"required": true,
|
|
2409
|
+
"schema": {
|
|
2410
|
+
"$ref": "#/definitions/WorkflowServiceUpdateWorkerConfigBody"
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
],
|
|
2414
|
+
"tags": [
|
|
2415
|
+
"WorkflowService"
|
|
2416
|
+
]
|
|
2417
|
+
}
|
|
2418
|
+
},
|
|
2286
2419
|
"/api/v1/namespaces/{namespace}/workflow-count": {
|
|
2287
2420
|
"get": {
|
|
2288
2421
|
"summary": "CountWorkflowExecutions is a visibility API to count of workflow executions in a specific namespace.",
|
|
@@ -5176,6 +5309,13 @@
|
|
|
5176
5309
|
"required": false,
|
|
5177
5310
|
"type": "boolean"
|
|
5178
5311
|
},
|
|
5312
|
+
{
|
|
5313
|
+
"name": "reportConfig",
|
|
5314
|
+
"description": "Report Task Queue Config",
|
|
5315
|
+
"in": "query",
|
|
5316
|
+
"required": false,
|
|
5317
|
+
"type": "boolean"
|
|
5318
|
+
},
|
|
5179
5319
|
{
|
|
5180
5320
|
"name": "includeTaskQueueStatus",
|
|
5181
5321
|
"description": "Deprecated, use `report_stats` instead.\nIf true, the task queue status will be included in the response.",
|
|
@@ -5257,6 +5397,52 @@
|
|
|
5257
5397
|
]
|
|
5258
5398
|
}
|
|
5259
5399
|
},
|
|
5400
|
+
"/namespaces/{namespace}/task-queues/{taskQueue}/update-config": {
|
|
5401
|
+
"post": {
|
|
5402
|
+
"summary": "Updates task queue configuration.\nFor the overall queue rate limit: the rate limit set by this api overrides the worker-set rate limit,\nwhich uncouples the rate limit from the worker lifecycle.\nIf the overall queue rate limit is unset, the worker-set rate limit takes effect.",
|
|
5403
|
+
"operationId": "UpdateTaskQueueConfig",
|
|
5404
|
+
"responses": {
|
|
5405
|
+
"200": {
|
|
5406
|
+
"description": "A successful response.",
|
|
5407
|
+
"schema": {
|
|
5408
|
+
"$ref": "#/definitions/v1UpdateTaskQueueConfigResponse"
|
|
5409
|
+
}
|
|
5410
|
+
},
|
|
5411
|
+
"default": {
|
|
5412
|
+
"description": "An unexpected error response.",
|
|
5413
|
+
"schema": {
|
|
5414
|
+
"$ref": "#/definitions/rpcStatus"
|
|
5415
|
+
}
|
|
5416
|
+
}
|
|
5417
|
+
},
|
|
5418
|
+
"parameters": [
|
|
5419
|
+
{
|
|
5420
|
+
"name": "namespace",
|
|
5421
|
+
"in": "path",
|
|
5422
|
+
"required": true,
|
|
5423
|
+
"type": "string"
|
|
5424
|
+
},
|
|
5425
|
+
{
|
|
5426
|
+
"name": "taskQueue",
|
|
5427
|
+
"description": "Selects the task queue to update.",
|
|
5428
|
+
"in": "path",
|
|
5429
|
+
"required": true,
|
|
5430
|
+
"type": "string"
|
|
5431
|
+
},
|
|
5432
|
+
{
|
|
5433
|
+
"name": "body",
|
|
5434
|
+
"in": "body",
|
|
5435
|
+
"required": true,
|
|
5436
|
+
"schema": {
|
|
5437
|
+
"$ref": "#/definitions/WorkflowServiceUpdateTaskQueueConfigBody"
|
|
5438
|
+
}
|
|
5439
|
+
}
|
|
5440
|
+
],
|
|
5441
|
+
"tags": [
|
|
5442
|
+
"WorkflowService"
|
|
5443
|
+
]
|
|
5444
|
+
}
|
|
5445
|
+
},
|
|
5260
5446
|
"/namespaces/{namespace}/task-queues/{taskQueue}/worker-build-id-compatibility": {
|
|
5261
5447
|
"get": {
|
|
5262
5448
|
"summary": "Deprecated. Use `GetWorkerVersioningRules`.\nFetches the worker build id versioning sets for a task queue.",
|
|
@@ -5851,6 +6037,46 @@
|
|
|
5851
6037
|
]
|
|
5852
6038
|
}
|
|
5853
6039
|
},
|
|
6040
|
+
"/namespaces/{namespace}/workers/fetch-config": {
|
|
6041
|
+
"post": {
|
|
6042
|
+
"summary": "FetchWorkerConfig returns the worker configuration for a specific worker.",
|
|
6043
|
+
"operationId": "FetchWorkerConfig",
|
|
6044
|
+
"responses": {
|
|
6045
|
+
"200": {
|
|
6046
|
+
"description": "A successful response.",
|
|
6047
|
+
"schema": {
|
|
6048
|
+
"$ref": "#/definitions/v1FetchWorkerConfigResponse"
|
|
6049
|
+
}
|
|
6050
|
+
},
|
|
6051
|
+
"default": {
|
|
6052
|
+
"description": "An unexpected error response.",
|
|
6053
|
+
"schema": {
|
|
6054
|
+
"$ref": "#/definitions/rpcStatus"
|
|
6055
|
+
}
|
|
6056
|
+
}
|
|
6057
|
+
},
|
|
6058
|
+
"parameters": [
|
|
6059
|
+
{
|
|
6060
|
+
"name": "namespace",
|
|
6061
|
+
"description": "Namespace this worker belongs to.",
|
|
6062
|
+
"in": "path",
|
|
6063
|
+
"required": true,
|
|
6064
|
+
"type": "string"
|
|
6065
|
+
},
|
|
6066
|
+
{
|
|
6067
|
+
"name": "body",
|
|
6068
|
+
"in": "body",
|
|
6069
|
+
"required": true,
|
|
6070
|
+
"schema": {
|
|
6071
|
+
"$ref": "#/definitions/WorkflowServiceFetchWorkerConfigBody"
|
|
6072
|
+
}
|
|
6073
|
+
}
|
|
6074
|
+
],
|
|
6075
|
+
"tags": [
|
|
6076
|
+
"WorkflowService"
|
|
6077
|
+
]
|
|
6078
|
+
}
|
|
6079
|
+
},
|
|
5854
6080
|
"/namespaces/{namespace}/workers/heartbeat": {
|
|
5855
6081
|
"post": {
|
|
5856
6082
|
"summary": "WorkerHeartbeat receive heartbeat request from the worker.",
|
|
@@ -5891,6 +6117,46 @@
|
|
|
5891
6117
|
]
|
|
5892
6118
|
}
|
|
5893
6119
|
},
|
|
6120
|
+
"/namespaces/{namespace}/workers/update-config": {
|
|
6121
|
+
"post": {
|
|
6122
|
+
"summary": "UpdateWorkerConfig updates the worker configuration of one or more workers.\nCan be used to partially update the worker configuration.\nCan be used to update the configuration of multiple workers.",
|
|
6123
|
+
"operationId": "UpdateWorkerConfig",
|
|
6124
|
+
"responses": {
|
|
6125
|
+
"200": {
|
|
6126
|
+
"description": "A successful response.",
|
|
6127
|
+
"schema": {
|
|
6128
|
+
"$ref": "#/definitions/v1UpdateWorkerConfigResponse"
|
|
6129
|
+
}
|
|
6130
|
+
},
|
|
6131
|
+
"default": {
|
|
6132
|
+
"description": "An unexpected error response.",
|
|
6133
|
+
"schema": {
|
|
6134
|
+
"$ref": "#/definitions/rpcStatus"
|
|
6135
|
+
}
|
|
6136
|
+
}
|
|
6137
|
+
},
|
|
6138
|
+
"parameters": [
|
|
6139
|
+
{
|
|
6140
|
+
"name": "namespace",
|
|
6141
|
+
"description": "Namespace this worker belongs to.",
|
|
6142
|
+
"in": "path",
|
|
6143
|
+
"required": true,
|
|
6144
|
+
"type": "string"
|
|
6145
|
+
},
|
|
6146
|
+
{
|
|
6147
|
+
"name": "body",
|
|
6148
|
+
"in": "body",
|
|
6149
|
+
"required": true,
|
|
6150
|
+
"schema": {
|
|
6151
|
+
"$ref": "#/definitions/WorkflowServiceUpdateWorkerConfigBody"
|
|
6152
|
+
}
|
|
6153
|
+
}
|
|
6154
|
+
],
|
|
6155
|
+
"tags": [
|
|
6156
|
+
"WorkflowService"
|
|
6157
|
+
]
|
|
6158
|
+
}
|
|
6159
|
+
},
|
|
5894
6160
|
"/namespaces/{namespace}/workflow-count": {
|
|
5895
6161
|
"get": {
|
|
5896
6162
|
"summary": "CountWorkflowExecutions is a visibility API to count of workflow executions in a specific namespace.",
|
|
@@ -6932,6 +7198,20 @@
|
|
|
6932
7198
|
}
|
|
6933
7199
|
}
|
|
6934
7200
|
},
|
|
7201
|
+
"DescribeTaskQueueResponseEffectiveRateLimit": {
|
|
7202
|
+
"type": "object",
|
|
7203
|
+
"properties": {
|
|
7204
|
+
"requestsPerSecond": {
|
|
7205
|
+
"type": "number",
|
|
7206
|
+
"format": "float",
|
|
7207
|
+
"description": "The effective rate limit for the task queue."
|
|
7208
|
+
},
|
|
7209
|
+
"rateLimitSource": {
|
|
7210
|
+
"$ref": "#/definitions/v1RateLimitSource",
|
|
7211
|
+
"title": "Source of the RateLimit Configuration,which can be one of the following values:\n- SOURCE_API: The rate limit that is set via the TaskQueueConfig api.\n- SOURCE_WORKER: The rate limit is the value set using the workerOptions in TaskQueueActivitiesPerSecond.\n- SOURCE_SYSTEM: The rate limit is the default value set by the system"
|
|
7212
|
+
}
|
|
7213
|
+
}
|
|
7214
|
+
},
|
|
6935
7215
|
"DescribeWorkerDeploymentVersionResponseVersionTaskQueue": {
|
|
6936
7216
|
"type": "object",
|
|
6937
7217
|
"properties": {
|
|
@@ -6944,6 +7224,13 @@
|
|
|
6944
7224
|
"stats": {
|
|
6945
7225
|
"$ref": "#/definitions/v1TaskQueueStats",
|
|
6946
7226
|
"description": "Only set if `report_task_queue_stats` is set on the request."
|
|
7227
|
+
},
|
|
7228
|
+
"statsByPriorityKey": {
|
|
7229
|
+
"type": "object",
|
|
7230
|
+
"additionalProperties": {
|
|
7231
|
+
"$ref": "#/definitions/v1TaskQueueStats"
|
|
7232
|
+
},
|
|
7233
|
+
"description": "Task queue stats breakdown by priority key. Only contains actively used priority keys.\nOnly set if `report_task_queue_stats` is set to true in the request."
|
|
6947
7234
|
}
|
|
6948
7235
|
}
|
|
6949
7236
|
},
|
|
@@ -7178,6 +7465,19 @@
|
|
|
7178
7465
|
},
|
|
7179
7466
|
"description": "An operation completed successfully."
|
|
7180
7467
|
},
|
|
7468
|
+
"UpdateTaskQueueConfigRequestRateLimitUpdate": {
|
|
7469
|
+
"type": "object",
|
|
7470
|
+
"properties": {
|
|
7471
|
+
"rateLimit": {
|
|
7472
|
+
"$ref": "#/definitions/v1RateLimit",
|
|
7473
|
+
"title": "Rate Limit to be updated"
|
|
7474
|
+
},
|
|
7475
|
+
"reason": {
|
|
7476
|
+
"type": "string",
|
|
7477
|
+
"description": "Reason for why the rate limit was set."
|
|
7478
|
+
}
|
|
7479
|
+
}
|
|
7480
|
+
},
|
|
7181
7481
|
"UpdateWorkerBuildIdCompatibilityRequestAddNewCompatibleVersion": {
|
|
7182
7482
|
"type": "object",
|
|
7183
7483
|
"properties": {
|
|
@@ -7313,6 +7613,35 @@
|
|
|
7313
7613
|
"default": "PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED",
|
|
7314
7614
|
"description": "Used to specify different sub-types of Pinned override that we plan to add in the future.\n\n - PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED: Unspecified.\n - PINNED_OVERRIDE_BEHAVIOR_PINNED: Override workflow behavior to be Pinned."
|
|
7315
7615
|
},
|
|
7616
|
+
"WorkerConfigAutoscalingPollerBehavior": {
|
|
7617
|
+
"type": "object",
|
|
7618
|
+
"properties": {
|
|
7619
|
+
"minPollers": {
|
|
7620
|
+
"type": "integer",
|
|
7621
|
+
"format": "int32",
|
|
7622
|
+
"description": "At least this many poll calls will always be attempted (assuming slots are available).\nCannot be zero."
|
|
7623
|
+
},
|
|
7624
|
+
"maxPollers": {
|
|
7625
|
+
"type": "integer",
|
|
7626
|
+
"format": "int32",
|
|
7627
|
+
"description": "At most this many poll calls will ever be open at once. Must be >= `minimum`."
|
|
7628
|
+
},
|
|
7629
|
+
"initialPollers": {
|
|
7630
|
+
"type": "integer",
|
|
7631
|
+
"format": "int32",
|
|
7632
|
+
"description": "This many polls will be attempted initially before scaling kicks in. Must be between\n `minimum` and `maximum`."
|
|
7633
|
+
}
|
|
7634
|
+
}
|
|
7635
|
+
},
|
|
7636
|
+
"WorkerConfigSimplePollerBehavior": {
|
|
7637
|
+
"type": "object",
|
|
7638
|
+
"properties": {
|
|
7639
|
+
"maxPollers": {
|
|
7640
|
+
"type": "integer",
|
|
7641
|
+
"format": "int32"
|
|
7642
|
+
}
|
|
7643
|
+
}
|
|
7644
|
+
},
|
|
7316
7645
|
"WorkerDeploymentInfoWorkerDeploymentVersionSummary": {
|
|
7317
7646
|
"type": "object",
|
|
7318
7647
|
"properties": {
|
|
@@ -7482,6 +7811,23 @@
|
|
|
7482
7811
|
}
|
|
7483
7812
|
}
|
|
7484
7813
|
},
|
|
7814
|
+
"WorkflowServiceFetchWorkerConfigBody": {
|
|
7815
|
+
"type": "object",
|
|
7816
|
+
"properties": {
|
|
7817
|
+
"identity": {
|
|
7818
|
+
"type": "string",
|
|
7819
|
+
"description": "The identity of the client who initiated this request."
|
|
7820
|
+
},
|
|
7821
|
+
"reason": {
|
|
7822
|
+
"type": "string",
|
|
7823
|
+
"description": "Reason for sending worker command, can be used for audit purpose."
|
|
7824
|
+
},
|
|
7825
|
+
"selector": {
|
|
7826
|
+
"$ref": "#/definitions/v1WorkerSelector",
|
|
7827
|
+
"description": "Defines which workers should receive this command.\nonly single worker is supported at this time."
|
|
7828
|
+
}
|
|
7829
|
+
}
|
|
7830
|
+
},
|
|
7485
7831
|
"WorkflowServicePatchScheduleBody": {
|
|
7486
7832
|
"type": "object",
|
|
7487
7833
|
"properties": {
|
|
@@ -7671,13 +8017,17 @@
|
|
|
7671
8017
|
"type": "string",
|
|
7672
8018
|
"description": "Reset all running activities with of this type."
|
|
7673
8019
|
},
|
|
8020
|
+
"matchAll": {
|
|
8021
|
+
"type": "boolean",
|
|
8022
|
+
"description": "Reset all running activities."
|
|
8023
|
+
},
|
|
7674
8024
|
"resetHeartbeat": {
|
|
7675
8025
|
"type": "boolean",
|
|
7676
8026
|
"description": "Indicates that activity should reset heartbeat details.\nThis flag will be applied only to the new instance of the activity."
|
|
7677
8027
|
},
|
|
7678
8028
|
"keepPaused": {
|
|
7679
8029
|
"type": "boolean",
|
|
7680
|
-
"title": "
|
|
8030
|
+
"title": "If activity is paused, it will remain paused after reset"
|
|
7681
8031
|
},
|
|
7682
8032
|
"jitter": {
|
|
7683
8033
|
"type": "string",
|
|
@@ -7687,7 +8037,8 @@
|
|
|
7687
8037
|
"type": "boolean",
|
|
7688
8038
|
"description": "If set, the activity options will be restored to the defaults.\nDefault options are then options activity was created with.\nThey are part of the first SCHEDULE event."
|
|
7689
8039
|
}
|
|
7690
|
-
}
|
|
8040
|
+
},
|
|
8041
|
+
"title": "NOTE: keep in sync with temporal.api.batch.v1.BatchOperationResetActivities"
|
|
7691
8042
|
},
|
|
7692
8043
|
"WorkflowServiceResetWorkflowExecutionBody": {
|
|
7693
8044
|
"type": "object",
|
|
@@ -8179,6 +8530,12 @@
|
|
|
8179
8530
|
},
|
|
8180
8531
|
"unpauseActivitiesOperation": {
|
|
8181
8532
|
"$ref": "#/definitions/v1BatchOperationUnpauseActivities"
|
|
8533
|
+
},
|
|
8534
|
+
"resetActivitiesOperation": {
|
|
8535
|
+
"$ref": "#/definitions/v1BatchOperationResetActivities"
|
|
8536
|
+
},
|
|
8537
|
+
"updateActivityOptionsOperation": {
|
|
8538
|
+
"$ref": "#/definitions/v1BatchOperationUpdateActivityOptions"
|
|
8182
8539
|
}
|
|
8183
8540
|
}
|
|
8184
8541
|
},
|
|
@@ -8428,11 +8785,16 @@
|
|
|
8428
8785
|
"type": "string",
|
|
8429
8786
|
"description": "Update all running activities of this type."
|
|
8430
8787
|
},
|
|
8788
|
+
"matchAll": {
|
|
8789
|
+
"type": "boolean",
|
|
8790
|
+
"description": "Update all running activities."
|
|
8791
|
+
},
|
|
8431
8792
|
"restoreOriginal": {
|
|
8432
8793
|
"type": "boolean",
|
|
8433
8794
|
"description": "If set, the activity options will be restored to the default.\nDefault options are then options activity was created with.\nThey are part of the first SCHEDULE event.\nThis flag cannot be combined with any other option; if you supply\nrestore_original together with other options, the request will be rejected."
|
|
8434
8795
|
}
|
|
8435
|
-
}
|
|
8796
|
+
},
|
|
8797
|
+
"title": "NOTE: keep in sync with temporal.api.batch.v1.BatchOperationUpdateActivityOptions"
|
|
8436
8798
|
},
|
|
8437
8799
|
"WorkflowServiceUpdateNamespaceBody": {
|
|
8438
8800
|
"type": "object",
|
|
@@ -8484,6 +8846,50 @@
|
|
|
8484
8846
|
}
|
|
8485
8847
|
}
|
|
8486
8848
|
},
|
|
8849
|
+
"WorkflowServiceUpdateTaskQueueConfigBody": {
|
|
8850
|
+
"type": "object",
|
|
8851
|
+
"properties": {
|
|
8852
|
+
"identity": {
|
|
8853
|
+
"type": "string"
|
|
8854
|
+
},
|
|
8855
|
+
"taskQueueType": {
|
|
8856
|
+
"$ref": "#/definitions/v1TaskQueueType"
|
|
8857
|
+
},
|
|
8858
|
+
"updateQueueRateLimit": {
|
|
8859
|
+
"$ref": "#/definitions/UpdateTaskQueueConfigRequestRateLimitUpdate",
|
|
8860
|
+
"description": "Update to queue-wide rate limit.\nIf not set, this configuration is unchanged.\nNOTE: A limit set by the worker is overriden; and restored again when reset.\nIf the `rate_limit` field in the `RateLimitUpdate` is missing, remove the existing rate limit."
|
|
8861
|
+
},
|
|
8862
|
+
"updateFairnessKeyRateLimitDefault": {
|
|
8863
|
+
"$ref": "#/definitions/UpdateTaskQueueConfigRequestRateLimitUpdate",
|
|
8864
|
+
"description": "Update to the default fairness key rate limit.\nIf not set, this configuration is unchanged.\nIf the `rate_limit` field in the `RateLimitUpdate` is missing, remove the existing rate limit."
|
|
8865
|
+
}
|
|
8866
|
+
}
|
|
8867
|
+
},
|
|
8868
|
+
"WorkflowServiceUpdateWorkerConfigBody": {
|
|
8869
|
+
"type": "object",
|
|
8870
|
+
"properties": {
|
|
8871
|
+
"identity": {
|
|
8872
|
+
"type": "string",
|
|
8873
|
+
"description": "The identity of the client who initiated this request."
|
|
8874
|
+
},
|
|
8875
|
+
"reason": {
|
|
8876
|
+
"type": "string",
|
|
8877
|
+
"description": "Reason for sending worker command, can be used for audit purpose."
|
|
8878
|
+
},
|
|
8879
|
+
"workerConfig": {
|
|
8880
|
+
"$ref": "#/definitions/v1WorkerConfig",
|
|
8881
|
+
"description": "Partial updates are accepted and controlled by update_mask.\nThe worker configuration to set."
|
|
8882
|
+
},
|
|
8883
|
+
"updateMask": {
|
|
8884
|
+
"type": "string",
|
|
8885
|
+
"title": "Controls which fields from `worker_config` will be applied"
|
|
8886
|
+
},
|
|
8887
|
+
"selector": {
|
|
8888
|
+
"$ref": "#/definitions/v1WorkerSelector",
|
|
8889
|
+
"description": "Defines which workers should receive this command."
|
|
8890
|
+
}
|
|
8891
|
+
}
|
|
8892
|
+
},
|
|
8487
8893
|
"WorkflowServiceUpdateWorkerDeploymentVersionMetadataBody": {
|
|
8488
8894
|
"type": "object",
|
|
8489
8895
|
"properties": {
|
|
@@ -9225,6 +9631,42 @@
|
|
|
9225
9631
|
},
|
|
9226
9632
|
"description": "BatchOperationReset sends reset requests to batch workflows.\nKeep the parameter in sync with temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest."
|
|
9227
9633
|
},
|
|
9634
|
+
"v1BatchOperationResetActivities": {
|
|
9635
|
+
"type": "object",
|
|
9636
|
+
"properties": {
|
|
9637
|
+
"identity": {
|
|
9638
|
+
"type": "string",
|
|
9639
|
+
"description": "The identity of the worker/client."
|
|
9640
|
+
},
|
|
9641
|
+
"type": {
|
|
9642
|
+
"type": "string"
|
|
9643
|
+
},
|
|
9644
|
+
"matchAll": {
|
|
9645
|
+
"type": "boolean"
|
|
9646
|
+
},
|
|
9647
|
+
"resetAttempts": {
|
|
9648
|
+
"type": "boolean",
|
|
9649
|
+
"description": "Setting this flag will also reset the number of attempts."
|
|
9650
|
+
},
|
|
9651
|
+
"resetHeartbeat": {
|
|
9652
|
+
"type": "boolean",
|
|
9653
|
+
"description": "Setting this flag will also reset the heartbeat details."
|
|
9654
|
+
},
|
|
9655
|
+
"keepPaused": {
|
|
9656
|
+
"type": "boolean",
|
|
9657
|
+
"title": "If activity is paused, it will remain paused after reset"
|
|
9658
|
+
},
|
|
9659
|
+
"jitter": {
|
|
9660
|
+
"type": "string",
|
|
9661
|
+
"description": "If set, the activity will start at a random time within the specified jitter\nduration, introducing variability to the start time."
|
|
9662
|
+
},
|
|
9663
|
+
"restoreOriginalOptions": {
|
|
9664
|
+
"type": "boolean",
|
|
9665
|
+
"description": "If set, the activity options will be restored to the defaults.\nDefault options are then options activity was created with.\nThey are part of the first ActivityTaskScheduled event."
|
|
9666
|
+
}
|
|
9667
|
+
},
|
|
9668
|
+
"title": "BatchOperationResetActivities sends activity reset requests in a batch.\nNOTE: keep in sync with temporal.api.workflowservice.v1.ResetActivityRequest"
|
|
9669
|
+
},
|
|
9228
9670
|
"v1BatchOperationSignal": {
|
|
9229
9671
|
"type": "object",
|
|
9230
9672
|
"properties": {
|
|
@@ -9280,7 +9722,10 @@
|
|
|
9280
9722
|
"BATCH_OPERATION_TYPE_SIGNAL",
|
|
9281
9723
|
"BATCH_OPERATION_TYPE_DELETE",
|
|
9282
9724
|
"BATCH_OPERATION_TYPE_RESET",
|
|
9283
|
-
"BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS"
|
|
9725
|
+
"BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS",
|
|
9726
|
+
"BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY",
|
|
9727
|
+
"BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS",
|
|
9728
|
+
"BATCH_OPERATION_TYPE_RESET_ACTIVITY"
|
|
9284
9729
|
],
|
|
9285
9730
|
"default": "BATCH_OPERATION_TYPE_UNSPECIFIED"
|
|
9286
9731
|
},
|
|
@@ -9299,11 +9744,11 @@
|
|
|
9299
9744
|
},
|
|
9300
9745
|
"resetAttempts": {
|
|
9301
9746
|
"type": "boolean",
|
|
9302
|
-
"description": "
|
|
9747
|
+
"description": "Setting this flag will also reset the number of attempts."
|
|
9303
9748
|
},
|
|
9304
9749
|
"resetHeartbeat": {
|
|
9305
9750
|
"type": "boolean",
|
|
9306
|
-
"description": "
|
|
9751
|
+
"description": "Setting this flag will also reset the heartbeat details."
|
|
9307
9752
|
},
|
|
9308
9753
|
"jitter": {
|
|
9309
9754
|
"type": "string",
|
|
@@ -9312,6 +9757,34 @@
|
|
|
9312
9757
|
},
|
|
9313
9758
|
"description": "BatchOperationUnpauseActivities sends unpause requests to batch workflows."
|
|
9314
9759
|
},
|
|
9760
|
+
"v1BatchOperationUpdateActivityOptions": {
|
|
9761
|
+
"type": "object",
|
|
9762
|
+
"properties": {
|
|
9763
|
+
"identity": {
|
|
9764
|
+
"type": "string",
|
|
9765
|
+
"description": "The identity of the worker/client."
|
|
9766
|
+
},
|
|
9767
|
+
"type": {
|
|
9768
|
+
"type": "string"
|
|
9769
|
+
},
|
|
9770
|
+
"matchAll": {
|
|
9771
|
+
"type": "boolean"
|
|
9772
|
+
},
|
|
9773
|
+
"activityOptions": {
|
|
9774
|
+
"$ref": "#/definitions/v1ActivityOptions",
|
|
9775
|
+
"description": "Update Activity options. Partial updates are accepted and controlled by update_mask."
|
|
9776
|
+
},
|
|
9777
|
+
"updateMask": {
|
|
9778
|
+
"type": "string",
|
|
9779
|
+
"title": "Controls which fields from `activity_options` will be applied"
|
|
9780
|
+
},
|
|
9781
|
+
"restoreOriginal": {
|
|
9782
|
+
"type": "boolean",
|
|
9783
|
+
"description": "If set, the activity options will be restored to the default.\nDefault options are then options activity was created with.\nThey are part of the first ActivityTaskScheduled event.\nThis flag cannot be combined with any other option; if you supply\nrestore_original together with other options, the request will be rejected."
|
|
9784
|
+
}
|
|
9785
|
+
},
|
|
9786
|
+
"title": "BatchOperationUpdateActivityOptions sends an update-activity-options requests in a batch.\nNOTE: keep in sync with temporal.api.workflowservice.v1.UpdateActivityRequest"
|
|
9787
|
+
},
|
|
9315
9788
|
"v1BatchOperationUpdateWorkflowExecutionOptions": {
|
|
9316
9789
|
"type": "object",
|
|
9317
9790
|
"properties": {
|
|
@@ -9921,6 +10394,24 @@
|
|
|
9921
10394
|
}
|
|
9922
10395
|
}
|
|
9923
10396
|
},
|
|
10397
|
+
"v1ConfigMetadata": {
|
|
10398
|
+
"type": "object",
|
|
10399
|
+
"properties": {
|
|
10400
|
+
"reason": {
|
|
10401
|
+
"type": "string",
|
|
10402
|
+
"description": "Reason for why the config was set."
|
|
10403
|
+
},
|
|
10404
|
+
"updateIdentity": {
|
|
10405
|
+
"type": "string",
|
|
10406
|
+
"description": "Identity of the last updater.\nSet by the request's identity field."
|
|
10407
|
+
},
|
|
10408
|
+
"updateTime": {
|
|
10409
|
+
"type": "string",
|
|
10410
|
+
"format": "date-time",
|
|
10411
|
+
"description": "Time of the last update."
|
|
10412
|
+
}
|
|
10413
|
+
}
|
|
10414
|
+
},
|
|
9924
10415
|
"v1ContinueAsNewInitiator": {
|
|
9925
10416
|
"type": "string",
|
|
9926
10417
|
"enum": [
|
|
@@ -10322,12 +10813,26 @@
|
|
|
10322
10813
|
},
|
|
10323
10814
|
"stats": {
|
|
10324
10815
|
"$ref": "#/definitions/v1TaskQueueStats",
|
|
10325
|
-
"description": "Statistics for the task queue
|
|
10816
|
+
"description": "Statistics for the task queue.\nOnly set if `report_stats` is set on the request."
|
|
10817
|
+
},
|
|
10818
|
+
"statsByPriorityKey": {
|
|
10819
|
+
"type": "object",
|
|
10820
|
+
"additionalProperties": {
|
|
10821
|
+
"$ref": "#/definitions/v1TaskQueueStats"
|
|
10822
|
+
},
|
|
10823
|
+
"description": "Task queue stats breakdown by priority key. Only contains actively used priority keys.\nOnly set if `report_stats` is set on the request."
|
|
10326
10824
|
},
|
|
10327
10825
|
"versioningInfo": {
|
|
10328
10826
|
"$ref": "#/definitions/v1TaskQueueVersioningInfo",
|
|
10329
10827
|
"description": "Specifies which Worker Deployment Version(s) Server routes this Task Queue's tasks to.\nWhen not present, it means the tasks are routed to Unversioned workers (workers with\nUNVERSIONED or unspecified WorkerVersioningMode.)\nTask Queue Versioning info is updated indirectly by calling SetWorkerDeploymentCurrentVersion\nand SetWorkerDeploymentRampingVersion on Worker Deployments.\nNote: This information is not relevant to Pinned workflow executions and their activities as\nthey are always routed to their Pinned Deployment Version. However, new workflow executions\nare typically not Pinned until they complete their first task (unless they are started with\na Pinned VersioningOverride or are Child Workflows of a Pinned parent)."
|
|
10330
10828
|
},
|
|
10829
|
+
"config": {
|
|
10830
|
+
"$ref": "#/definitions/v1TaskQueueConfig",
|
|
10831
|
+
"description": "Only populated if report_task_queue_config is set to true."
|
|
10832
|
+
},
|
|
10833
|
+
"effectiveRateLimit": {
|
|
10834
|
+
"$ref": "#/definitions/DescribeTaskQueueResponseEffectiveRateLimit"
|
|
10835
|
+
},
|
|
10331
10836
|
"taskQueueStatus": {
|
|
10332
10837
|
"$ref": "#/definitions/v1TaskQueueStatus",
|
|
10333
10838
|
"description": "Deprecated.\nStatus of the task queue. Only populated when `include_task_queue_status` is set to true in the request."
|
|
@@ -10653,6 +11158,15 @@
|
|
|
10653
11158
|
},
|
|
10654
11159
|
"title": "Represents a historical replication status of a Namespace"
|
|
10655
11160
|
},
|
|
11161
|
+
"v1FetchWorkerConfigResponse": {
|
|
11162
|
+
"type": "object",
|
|
11163
|
+
"properties": {
|
|
11164
|
+
"workerConfig": {
|
|
11165
|
+
"$ref": "#/definitions/v1WorkerConfig",
|
|
11166
|
+
"description": "The worker configuration."
|
|
11167
|
+
}
|
|
11168
|
+
}
|
|
11169
|
+
},
|
|
10656
11170
|
"v1GetClusterInfoResponse": {
|
|
10657
11171
|
"type": "object",
|
|
10658
11172
|
"properties": {
|
|
@@ -12372,6 +12886,19 @@
|
|
|
12372
12886
|
],
|
|
12373
12887
|
"default": "PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED"
|
|
12374
12888
|
},
|
|
12889
|
+
"v1PluginInfo": {
|
|
12890
|
+
"type": "object",
|
|
12891
|
+
"properties": {
|
|
12892
|
+
"name": {
|
|
12893
|
+
"type": "string",
|
|
12894
|
+
"description": "The name of the plugin, required."
|
|
12895
|
+
},
|
|
12896
|
+
"version": {
|
|
12897
|
+
"type": "string",
|
|
12898
|
+
"description": "The version of the plugin, may be empty."
|
|
12899
|
+
}
|
|
12900
|
+
}
|
|
12901
|
+
},
|
|
12375
12902
|
"v1PollActivityTaskQueueResponse": {
|
|
12376
12903
|
"type": "object",
|
|
12377
12904
|
"properties": {
|
|
@@ -12627,10 +13154,19 @@
|
|
|
12627
13154
|
"priorityKey": {
|
|
12628
13155
|
"type": "integer",
|
|
12629
13156
|
"format": "int32",
|
|
12630
|
-
"description": "Priority key is a positive integer from 1 to n, where smaller integers\ncorrespond to higher priorities (tasks run sooner). In general, tasks in\na queue should be processed in close to priority order, although small\ndeviations are possible.\n\nThe maximum priority value (minimum priority) is determined by server\nconfiguration, and defaults to 5.\n\
|
|
13157
|
+
"description": "Priority key is a positive integer from 1 to n, where smaller integers\ncorrespond to higher priorities (tasks run sooner). In general, tasks in\na queue should be processed in close to priority order, although small\ndeviations are possible.\n\nThe maximum priority value (minimum priority) is determined by server\nconfiguration, and defaults to 5.\n\nIf priority is not present (or zero), then the effective priority will be\nthe default priority, which is is calculated by (min+max)/2. With the\ndefault max of 5, and min of 1, that comes out to 3."
|
|
13158
|
+
},
|
|
13159
|
+
"fairnessKey": {
|
|
13160
|
+
"type": "string",
|
|
13161
|
+
"description": "Fairness key is a short string that's used as a key for a fairness\nbalancing mechanism. It may correspond to a tenant id, or to a fixed\nstring like \"high\" or \"low\". The default is the empty string.\n\nThe fairness mechanism attempts to dispatch tasks for a given key in\nproportion to its weight. For example, using a thousand distinct tenant\nids, each with a weight of 1.0 (the default) will result in each tenant\ngetting a roughly equal share of task dispatch throughput.\n\n(Note: this does not imply equal share of worker capacity! Fairness\ndecisions are made based on queue statistics, not\ncurrent worker load.)\n\nAs another example, using keys \"high\" and \"low\" with weight 9.0 and 1.0\nrespectively will prefer dispatching \"high\" tasks over \"low\" tasks at a\n9:1 ratio, while allowing either key to use all worker capacity if the\nother is not present.\n\nAll fairness mechanisms, including rate limits, are best-effort and\nprobabilistic. The results may not match what a \"perfect\" algorithm with\ninfinite resources would produce. The more unique keys are used, the less\naccurate the results will be.\n\nFairness keys are limited to 64 bytes."
|
|
13162
|
+
},
|
|
13163
|
+
"fairnessWeight": {
|
|
13164
|
+
"type": "number",
|
|
13165
|
+
"format": "float",
|
|
13166
|
+
"description": "Fairness weight for a task can come from multiple sources for\nflexibility. From highest to lowest precedence:\n1. Weights for a small set of keys can be overridden in task queue\n configuration with an API.\n2. It can be attached to the workflow/activity in this field.\n3. The default weight of 1.0 will be used.\n\nWeight values are clamped to the range [0.001, 1000]."
|
|
12631
13167
|
}
|
|
12632
13168
|
},
|
|
12633
|
-
"description": "Priority contains metadata that controls relative ordering of task processing\nwhen tasks are
|
|
13169
|
+
"description": "Priority contains metadata that controls relative ordering of task processing\nwhen tasks are backed up in a queue. Initially, Priority will be used in\nmatching (workflow and activity) task queues. Later it may be used in history\ntask queues and in rate limiting decisions.\n\nPriority is attached to workflows and activities. By default, activities\ninherit Priority from the workflow that created them, but may override fields\nwhen an activity is started or modified.\n\nDespite being named \"Priority\", this message also contains fields that\ncontrol \"fairness\" mechanisms.\n\nFor all fields, the field not present or equal to zero/empty string means to\ninherit the value from the calling workflow, or if there is no calling\nworkflow, then use the default value.\n\nFor all fields other than fairness_key, the zero value isn't meaningful so\nthere's no confusion between inherit/default and a meaningful value. For\nfairness_key, the empty string will be interpreted as \"inherit\". This means\nthat if a workflow has a non-empty fairness key, you can't override the\nfairness key of its activity to the empty string.\n\nThe overall semantics of Priority are:\n1. First, consider \"priority\": higher priority (lower number) goes first.\n2. Then, consider fairness: try to dispatch tasks for different fairness keys\n in proportion to their weight.\n\nApplications may use any subset of mechanisms that are useful to them and\nleave the other fields to use default values.\n\nNot all queues in the system may support the \"full\" semantics of all priority\nfields. (Currently only support in matching task queues is planned.)"
|
|
12634
13170
|
},
|
|
12635
13171
|
"v1ProtocolMessageCommandAttributes": {
|
|
12636
13172
|
"type": "object",
|
|
@@ -12711,6 +13247,38 @@
|
|
|
12711
13247
|
},
|
|
12712
13248
|
"description": "Range represents a set of integer values, used to match fields of a calendar\ntime in StructuredCalendarSpec. If end < start, then end is interpreted as\nequal to start. This means you can use a Range with start set to a value, and\nend and step unset (defaulting to 0) to represent a single value."
|
|
12713
13249
|
},
|
|
13250
|
+
"v1RateLimit": {
|
|
13251
|
+
"type": "object",
|
|
13252
|
+
"properties": {
|
|
13253
|
+
"requestsPerSecond": {
|
|
13254
|
+
"type": "number",
|
|
13255
|
+
"format": "float",
|
|
13256
|
+
"description": "Zero is a valid rate limit."
|
|
13257
|
+
}
|
|
13258
|
+
}
|
|
13259
|
+
},
|
|
13260
|
+
"v1RateLimitConfig": {
|
|
13261
|
+
"type": "object",
|
|
13262
|
+
"properties": {
|
|
13263
|
+
"rateLimit": {
|
|
13264
|
+
"$ref": "#/definitions/v1RateLimit"
|
|
13265
|
+
},
|
|
13266
|
+
"metadata": {
|
|
13267
|
+
"$ref": "#/definitions/v1ConfigMetadata"
|
|
13268
|
+
}
|
|
13269
|
+
}
|
|
13270
|
+
},
|
|
13271
|
+
"v1RateLimitSource": {
|
|
13272
|
+
"type": "string",
|
|
13273
|
+
"enum": [
|
|
13274
|
+
"RATE_LIMIT_SOURCE_UNSPECIFIED",
|
|
13275
|
+
"RATE_LIMIT_SOURCE_API",
|
|
13276
|
+
"RATE_LIMIT_SOURCE_WORKER",
|
|
13277
|
+
"RATE_LIMIT_SOURCE_SYSTEM"
|
|
13278
|
+
],
|
|
13279
|
+
"default": "RATE_LIMIT_SOURCE_UNSPECIFIED",
|
|
13280
|
+
"description": "Source for the effective rate limit.\n\n - RATE_LIMIT_SOURCE_API: The value was set by the API.\n - RATE_LIMIT_SOURCE_WORKER: The value was set by a worker.\n - RATE_LIMIT_SOURCE_SYSTEM: The value was set as the system default."
|
|
13281
|
+
},
|
|
12714
13282
|
"v1RecordActivityTaskHeartbeatByIdResponse": {
|
|
12715
13283
|
"type": "object",
|
|
12716
13284
|
"properties": {
|
|
@@ -14469,6 +15037,19 @@
|
|
|
14469
15037
|
},
|
|
14470
15038
|
"title": "See https://docs.temporal.io/docs/concepts/task-queues/"
|
|
14471
15039
|
},
|
|
15040
|
+
"v1TaskQueueConfig": {
|
|
15041
|
+
"type": "object",
|
|
15042
|
+
"properties": {
|
|
15043
|
+
"queueRateLimit": {
|
|
15044
|
+
"$ref": "#/definitions/v1RateLimitConfig",
|
|
15045
|
+
"description": "Unless modified, this is the system-defined rate limit."
|
|
15046
|
+
},
|
|
15047
|
+
"fairnessKeysRateLimitDefault": {
|
|
15048
|
+
"$ref": "#/definitions/v1RateLimitConfig",
|
|
15049
|
+
"description": "If set, each individual fairness key will be limited to this rate, scaled by the weight of the fairness key."
|
|
15050
|
+
}
|
|
15051
|
+
}
|
|
15052
|
+
},
|
|
14472
15053
|
"v1TaskQueueKind": {
|
|
14473
15054
|
"type": "string",
|
|
14474
15055
|
"enum": [
|
|
@@ -14925,10 +15506,27 @@
|
|
|
14925
15506
|
"v1UpdateScheduleResponse": {
|
|
14926
15507
|
"type": "object"
|
|
14927
15508
|
},
|
|
15509
|
+
"v1UpdateTaskQueueConfigResponse": {
|
|
15510
|
+
"type": "object",
|
|
15511
|
+
"properties": {
|
|
15512
|
+
"config": {
|
|
15513
|
+
"$ref": "#/definitions/v1TaskQueueConfig"
|
|
15514
|
+
}
|
|
15515
|
+
}
|
|
15516
|
+
},
|
|
14928
15517
|
"v1UpdateWorkerBuildIdCompatibilityResponse": {
|
|
14929
15518
|
"type": "object",
|
|
14930
15519
|
"title": "[cleanup-wv-pre-release]"
|
|
14931
15520
|
},
|
|
15521
|
+
"v1UpdateWorkerConfigResponse": {
|
|
15522
|
+
"type": "object",
|
|
15523
|
+
"properties": {
|
|
15524
|
+
"workerConfig": {
|
|
15525
|
+
"$ref": "#/definitions/v1WorkerConfig",
|
|
15526
|
+
"description": "The worker configuration. Will be returned if the command was sent to a single worker."
|
|
15527
|
+
}
|
|
15528
|
+
}
|
|
15529
|
+
},
|
|
14932
15530
|
"v1UpdateWorkerDeploymentVersionMetadataResponse": {
|
|
14933
15531
|
"type": "object",
|
|
14934
15532
|
"properties": {
|
|
@@ -15174,6 +15772,21 @@
|
|
|
15174
15772
|
},
|
|
15175
15773
|
"description": "Specifies client's intent to wait for Update results."
|
|
15176
15774
|
},
|
|
15775
|
+
"v1WorkerConfig": {
|
|
15776
|
+
"type": "object",
|
|
15777
|
+
"properties": {
|
|
15778
|
+
"workflowCacheSize": {
|
|
15779
|
+
"type": "integer",
|
|
15780
|
+
"format": "int32"
|
|
15781
|
+
},
|
|
15782
|
+
"simplePollerBehavior": {
|
|
15783
|
+
"$ref": "#/definitions/WorkerConfigSimplePollerBehavior"
|
|
15784
|
+
},
|
|
15785
|
+
"autoscalingPollerBehavior": {
|
|
15786
|
+
"$ref": "#/definitions/WorkerConfigAutoscalingPollerBehavior"
|
|
15787
|
+
}
|
|
15788
|
+
}
|
|
15789
|
+
},
|
|
15177
15790
|
"v1WorkerDeploymentInfo": {
|
|
15178
15791
|
"type": "object",
|
|
15179
15792
|
"properties": {
|
|
@@ -15403,6 +16016,14 @@
|
|
|
15403
16016
|
"type": "integer",
|
|
15404
16017
|
"format": "int32",
|
|
15405
16018
|
"description": "Current cache size, expressed in number of Workflow Executions."
|
|
16019
|
+
},
|
|
16020
|
+
"plugins": {
|
|
16021
|
+
"type": "array",
|
|
16022
|
+
"items": {
|
|
16023
|
+
"type": "object",
|
|
16024
|
+
"$ref": "#/definitions/v1PluginInfo"
|
|
16025
|
+
},
|
|
16026
|
+
"description": "Plugins currently in use by this SDK."
|
|
15406
16027
|
}
|
|
15407
16028
|
},
|
|
15408
16029
|
"description": "Worker info message, contains information about the worker and its current state.\nAll information is provided by the worker itself."
|
|
@@ -15461,6 +16082,16 @@
|
|
|
15461
16082
|
}
|
|
15462
16083
|
}
|
|
15463
16084
|
},
|
|
16085
|
+
"v1WorkerSelector": {
|
|
16086
|
+
"type": "object",
|
|
16087
|
+
"properties": {
|
|
16088
|
+
"workerInstanceKey": {
|
|
16089
|
+
"type": "string",
|
|
16090
|
+
"description": "Worker instance key to which the command should be sent."
|
|
16091
|
+
}
|
|
16092
|
+
},
|
|
16093
|
+
"description": "This is used to send commands to a specific worker or a group of workers.\nRight now, it is used to send commands to a specific worker instance.\nWill be extended to be able to send command to multiple workers."
|
|
16094
|
+
},
|
|
15464
16095
|
"v1WorkerSlotsInfo": {
|
|
15465
16096
|
"type": "object",
|
|
15466
16097
|
"properties": {
|
|
@@ -16068,6 +16699,10 @@
|
|
|
16068
16699
|
"inheritedPinnedVersion": {
|
|
16069
16700
|
"$ref": "#/definitions/v1WorkerDeploymentVersion",
|
|
16070
16701
|
"description": "If present, the new workflow should start on this version with pinned base behavior.\nChild of pinned parent will inherit the parent's version if the Child's Task Queue belongs to that version.\n\nNew run initiated by workflow ContinueAsNew of pinned run, will inherit the previous run's version if the\nnew run's Task Queue belongs to that version.\n\nNew run initiated by workflow Cron will never inherit.\n\nNew run initiated by workflow Retry will only inherit if the retried run is effectively pinned at the time\nof retry, and the retried run inherited a pinned version when it started (ie. it is a child of a pinned\nparent, or a CaN of a pinned run, and is running on a Task Queue in the inherited version).\n\nPinned override is inherited if Task Queue of new run is compatible with the override version.\nOverride is inherited separately and takes precedence over inherited base version."
|
|
16702
|
+
},
|
|
16703
|
+
"eagerExecutionAccepted": {
|
|
16704
|
+
"type": "boolean",
|
|
16705
|
+
"description": "A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and\neager execution was accepted by the server.\nOnly populated by server with version >= 1.29.0."
|
|
16071
16706
|
}
|
|
16072
16707
|
},
|
|
16073
16708
|
"title": "Always the first event in workflow history"
|