Skip to content

Commit

Permalink
Adding support for as-is for scheduled workflow id (#357)
Browse files Browse the repository at this point in the history
* Adding support for as-is for scheduled workflow ID
  • Loading branch information
ast2023 authored Feb 22, 2024
1 parent 0a4289f commit a3ed90f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6247,6 +6247,10 @@
"pauseOnFailure": {
"type": "boolean",
"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."
},
"keepOriginalWorkflowId": {
"type": "boolean",
"description": "If true, and the action would start a workflow, a timestamp will not be\nappended to the scheduled workflow id."
}
}
},
Expand Down
5 changes: 5 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4397,6 +4397,11 @@ components:
If true, and a workflow run fails or times out, turn on "paused".
This applies after retry policies: the full chain of retries must fail to
trigger a pause here.
keepOriginalWorkflowId:
type: boolean
description: |-
If true, and the action would start a workflow, a timestamp will not be
appended to the scheduled workflow id.
ScheduleSpec:
type: object
properties:
Expand Down
4 changes: 4 additions & 0 deletions temporal/api/schedule/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ message SchedulePolicies {
// This applies after retry policies: the full chain of retries must fail to
// trigger a pause here.
bool pause_on_failure = 3;

// If true, and the action would start a workflow, a timestamp will not be
// appended to the scheduled workflow id.
bool keep_original_workflow_id = 4;
}

message ScheduleAction {
Expand Down

0 comments on commit a3ed90f

Please sign in to comment.