Skip to content

Commit db42f93

Browse files
Add running_workflows to ScheduleListInfo, for ListSchedules (#464)
* Add running_workflows to ScheduleListInfo, for ListSchedules * Revert "Add running_workflows to ScheduleListInfo, for ListSchedules" This reverts commit afe7d04. * Add status to ScheduleActionResult/recent_actions * rename ScheduleActionResult.status to start_workflow_status
1 parent 07b975d commit db42f93

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

openapi/openapiv2.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9910,6 +9910,10 @@
99109910
"startWorkflowResult": {
99119911
"$ref": "#/definitions/v1WorkflowExecution",
99129912
"title": "If action was start_workflow:"
9913+
},
9914+
"startWorkflowStatus": {
9915+
"$ref": "#/definitions/v1WorkflowExecutionStatus",
9916+
"description": "If the action was start_workflow, this field will reflect an\neventually-consistent view of the started workflow's status."
99139917
}
99149918
}
99159919
},

openapi/openapiv3.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7434,6 +7434,21 @@ components:
74347434
allOf:
74357435
- $ref: '#/components/schemas/WorkflowExecution'
74367436
description: 'If action was start_workflow:'
7437+
startWorkflowStatus:
7438+
enum:
7439+
- WORKFLOW_EXECUTION_STATUS_UNSPECIFIED
7440+
- WORKFLOW_EXECUTION_STATUS_RUNNING
7441+
- WORKFLOW_EXECUTION_STATUS_COMPLETED
7442+
- WORKFLOW_EXECUTION_STATUS_FAILED
7443+
- WORKFLOW_EXECUTION_STATUS_CANCELED
7444+
- WORKFLOW_EXECUTION_STATUS_TERMINATED
7445+
- WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW
7446+
- WORKFLOW_EXECUTION_STATUS_TIMED_OUT
7447+
type: string
7448+
description: |-
7449+
If the action was start_workflow, this field will reflect an
7450+
eventually-consistent view of the started workflow's status.
7451+
format: enum
74377452
ScheduleInfo:
74387453
type: object
74397454
properties:

temporal/api/schedule/v1/message.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import "google/protobuf/timestamp.proto";
4141

4242
import "temporal/api/common/v1/message.proto";
4343
import "temporal/api/enums/v1/schedule.proto";
44+
import "temporal/api/enums/v1/workflow.proto";
4445
import "temporal/api/workflow/v1/message.proto";
4546

4647
// CalendarSpec describes an event specification relative to the calendar,
@@ -269,6 +270,10 @@ message ScheduleActionResult {
269270

270271
// If action was start_workflow:
271272
temporal.api.common.v1.WorkflowExecution start_workflow_result = 11;
273+
274+
// If the action was start_workflow, this field will reflect an
275+
// eventually-consistent view of the started workflow's status.
276+
temporal.api.enums.v1.WorkflowExecutionStatus start_workflow_status = 12;
272277
}
273278

274279
message ScheduleState {

0 commit comments

Comments
 (0)