Skip to content

Commit ab563c6

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

File tree

5 files changed

+33
-3
lines changed

5 files changed

+33
-3
lines changed

openapi/openapiv2.json

Lines changed: 12 additions & 1 deletion
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
},
@@ -12823,7 +12827,7 @@
1282312827
},
1282412828
"priority": {
1282512829
"$ref": "#/definitions/v1Priority",
12826-
"title": "Priority metadata"
12830+
"description": "Priority metadata\nDeprecated. Use `activity_options.priority`."
1282712831
},
1282812832
"pauseInfo": {
1282912833
"$ref": "#/definitions/PendingActivityInfoPauseInfo"
@@ -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: 13 additions & 1 deletion
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:
@@ -9674,7 +9678,9 @@ components:
96749678
priority:
96759679
allOf:
96769680
- $ref: '#/components/schemas/Priority'
9677-
description: Priority metadata
9681+
description: |-
9682+
Priority metadata
9683+
Deprecated. Use `activity_options.priority`.
96789684
pauseInfo:
96799685
$ref: '#/components/schemas/PendingActivityInfo_PauseInfo'
96809686
activityOptions:
@@ -14057,6 +14063,10 @@ components:
1405714063
allOf:
1405814064
- $ref: '#/components/schemas/VersioningOverride'
1405914065
description: If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
14066+
priority:
14067+
allOf:
14068+
- $ref: '#/components/schemas/Priority'
14069+
description: If set, overrides the workflow's priority sent by the SDK.
1406014070
WorkflowExecutionOptionsUpdatedEventAttributes:
1406114071
type: object
1406214072
properties:
@@ -14079,6 +14089,8 @@ components:
1407914089
items:
1408014090
$ref: '#/components/schemas/Callback'
1408114091
description: Completion callbacks attached to the running workflow execution.
14092+
priority:
14093+
$ref: '#/components/schemas/Priority'
1408214094
WorkflowExecutionSignaledEventAttributes:
1408314095
type: object
1408414096
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ 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
304+
// Deprecated. Use `activity_options.priority`.
305305
temporal.api.common.v1.Priority priority = 22;
306306

307307
message PauseInfo {
@@ -529,6 +529,9 @@ message NexusOperationCancellationInfo {
529529
message WorkflowExecutionOptions {
530530
// If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
531531
VersioningOverride versioning_override = 1;
532+
533+
// If set, overrides the workflow's priority sent by the SDK.
534+
temporal.api.common.v1.Priority priority = 2;
532535
}
533536

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

0 commit comments

Comments
 (0)