Skip to content

Commit a3ed90f

Browse files
authored
Adding support for as-is for scheduled workflow id (#357)
* Adding support for as-is for scheduled workflow ID
1 parent 0a4289f commit a3ed90f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

openapi/openapiv2.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6247,6 +6247,10 @@
62476247
"pauseOnFailure": {
62486248
"type": "boolean",
62496249
"description": "If true, and a workflow run fails or times out, turn on \"paused\".\nThis applies after retry policies: the full chain of retries must fail to\ntrigger a pause here."
6250+
},
6251+
"keepOriginalWorkflowId": {
6252+
"type": "boolean",
6253+
"description": "If true, and the action would start a workflow, a timestamp will not be\nappended to the scheduled workflow id."
62506254
}
62516255
}
62526256
},

openapi/openapiv3.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4397,6 +4397,11 @@ components:
43974397
If true, and a workflow run fails or times out, turn on "paused".
43984398
This applies after retry policies: the full chain of retries must fail to
43994399
trigger a pause here.
4400+
keepOriginalWorkflowId:
4401+
type: boolean
4402+
description: |-
4403+
If true, and the action would start a workflow, a timestamp will not be
4404+
appended to the scheduled workflow id.
44004405
ScheduleSpec:
44014406
type: object
44024407
properties:

temporal/api/schedule/v1/message.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ message SchedulePolicies {
243243
// This applies after retry policies: the full chain of retries must fail to
244244
// trigger a pause here.
245245
bool pause_on_failure = 3;
246+
247+
// If true, and the action would start a workflow, a timestamp will not be
248+
// appended to the scheduled workflow id.
249+
bool keep_original_workflow_id = 4;
246250
}
247251

248252
message ScheduleAction {

0 commit comments

Comments
 (0)