Skip to content

Commit 626b76b

Browse files
committed
Update Workflow and Activity Priority
1 parent d96bd55 commit 626b76b

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

openapi/openapiv2.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9293,6 +9293,10 @@
92939293
},
92949294
"retryPolicy": {
92959295
"$ref": "#/definitions/v1RetryPolicy"
9296+
},
9297+
"priority": {
9298+
"$ref": "#/definitions/v1Priority",
9299+
"description": "Overrides the activity's priority sent by the SDK."
92969300
}
92979301
}
92989302
},
@@ -16597,6 +16601,10 @@
1659716601
"versioningOverride": {
1659816602
"$ref": "#/definitions/v1VersioningOverride",
1659916603
"description": "If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion."
16604+
},
16605+
"priority": {
16606+
"$ref": "#/definitions/v1Priority",
16607+
"description": "If set, overrides the workflow's priority sent by the SDK."
1660016608
}
1660116609
}
1660216610
},
@@ -16622,6 +16630,9 @@
1662216630
"$ref": "#/definitions/v1Callback"
1662316631
},
1662416632
"description": "Completion callbacks attached to the running workflow execution."
16633+
},
16634+
"priority": {
16635+
"$ref": "#/definitions/v1Priority"
1662516636
}
1662616637
}
1662716638
},

openapi/openapiv3.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6508,6 +6508,10 @@ components:
65086508
description: Maximum permitted time between successful worker heartbeats.
65096509
retryPolicy:
65106510
$ref: '#/components/schemas/RetryPolicy'
6511+
priority:
6512+
allOf:
6513+
- $ref: '#/components/schemas/Priority'
6514+
description: Overrides the activity's priority sent by the SDK.
65116515
ActivityPropertiesModifiedExternallyEventAttributes:
65126516
type: object
65136517
properties:
@@ -14057,6 +14061,10 @@ components:
1405714061
allOf:
1405814062
- $ref: '#/components/schemas/VersioningOverride'
1405914063
description: If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
14064+
priority:
14065+
allOf:
14066+
- $ref: '#/components/schemas/Priority'
14067+
description: If set, overrides the workflow's priority sent by the SDK.
1406014068
WorkflowExecutionOptionsUpdatedEventAttributes:
1406114069
type: object
1406214070
properties:
@@ -14079,6 +14087,8 @@ components:
1407914087
items:
1408014088
$ref: '#/components/schemas/Callback'
1408114089
description: Completion callbacks attached to the running workflow execution.
14090+
priority:
14091+
$ref: '#/components/schemas/Priority'
1408214092
WorkflowExecutionSignaledEventAttributes:
1408314093
type: object
1408414094
properties:

temporal/api/activity/v1/message.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,7 @@ message ActivityOptions {
4242
google.protobuf.Duration heartbeat_timeout = 5;
4343

4444
temporal.api.common.v1.RetryPolicy retry_policy = 6;
45+
46+
// Overrides the activity's priority sent by the SDK.
47+
temporal.api.common.v1.Priority priority = 7;
4548
}

temporal/api/history/v1/message.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,7 @@ message WorkflowExecutionOptionsUpdatedEventAttributes {
797797
string attached_request_id = 3;
798798
// Completion callbacks attached to the running workflow execution.
799799
repeated temporal.api.common.v1.Callback attached_completion_callbacks = 4;
800+
temporal.api.common.v1.Priority priority = 5;
800801
}
801802

802803
// Not used anywhere. Use case is replaced by WorkflowExecutionOptionsUpdatedEventAttributes

temporal/api/workflow/v1/message.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ message PendingActivityInfo {
300300
// If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
301301
temporal.api.deployment.v1.WorkerDeploymentVersion last_deployment_version = 25;
302302

303-
304303
// Priority metadata
305304
temporal.api.common.v1.Priority priority = 22;
306305

@@ -529,6 +528,9 @@ message NexusOperationCancellationInfo {
529528
message WorkflowExecutionOptions {
530529
// If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
531530
VersioningOverride versioning_override = 1;
531+
532+
// If set, overrides the workflow's priority sent by the SDK.
533+
temporal.api.common.v1.Priority priority = 2;
532534
}
533535

534536
// Used to override the versioning behavior (and pinned deployment version, if applicable) of a

0 commit comments

Comments
 (0)