You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Describe what has changed in this PR -->
Adding proto changes that are required to implement Workflow
Pause/Unpause feature. Added,
- `WorkflowExecutionStatus.WORKFLOW_EXECUTION_STATUS_PAUSED` enum
- `EVENT_TYPE_WORKFLOW_EXECUTION_PAUSED` &
`EVENT_TYPE_WORKFLOW_EXECUTION_PAUSED` event enums and corresponding
event attributes
- `PauseWorkflowExecution` & `UnpauseWorkflowExecution` gRPC along with
corresponding request/responses.
<!-- Tell your future self why have you made these changes -->
**Why?**
These changes are needed to implement workflow pause/unpause feature.
<!-- Are there any breaking changes on binary or code level? -->
**Breaking changes**
Introduction of new status `WORKFLOW_EXECUTION_STATUS_PAUSED` may break
any saved visibility queries that may have assumed
`WorkflowExecutionStatus != 'Running'` returns all closed workflows.
description: Information about the workflow execution pause operation.
14252
14412
description: |-
14253
14413
Hold basic information about a workflow execution.
14254
14414
This structure is a part of visibility, and thus contain a limited subset of information.
@@ -14284,6 +14444,33 @@ components:
14284
14444
identity:
14285
14445
type: string
14286
14446
description: Optional. The identity of the client who initiated the request that created this event.
14447
+
WorkflowExecutionPauseInfo:
14448
+
type: object
14449
+
properties:
14450
+
identity:
14451
+
type: string
14452
+
description: The identity of the client who paused the workflow execution.
14453
+
pausedTime:
14454
+
type: string
14455
+
description: The time when the workflow execution was paused.
14456
+
format: date-time
14457
+
reason:
14458
+
type: string
14459
+
description: The reason for pausing the workflow execution.
14460
+
description: WorkflowExecutionPauseInfo contains the information about a workflow execution pause.
14461
+
WorkflowExecutionPausedEventAttributes:
14462
+
type: object
14463
+
properties:
14464
+
identity:
14465
+
type: string
14466
+
description: The identity of the client who paused the workflow execution.
14467
+
reason:
14468
+
type: string
14469
+
description: The reason for pausing the workflow execution.
14470
+
requestId:
14471
+
type: string
14472
+
description: The request ID of the request that paused the workflow execution.
14473
+
description: Attributes for an event marking that a workflow execution was paused.
14287
14474
WorkflowExecutionSignaledEventAttributes:
14288
14475
type: object
14289
14476
properties:
@@ -14538,6 +14725,19 @@ components:
14538
14725
newExecutionRunId:
14539
14726
type: string
14540
14727
description: If another run is started by cron or retry, this contains the new run id.
14728
+
WorkflowExecutionUnpausedEventAttributes:
14729
+
type: object
14730
+
properties:
14731
+
identity:
14732
+
type: string
14733
+
description: The identity of the client who unpaused the workflow execution.
14734
+
reason:
14735
+
type: string
14736
+
description: The reason for unpausing the workflow execution.
14737
+
requestId:
14738
+
type: string
14739
+
description: The request ID of the request that unpaused the workflow execution.
14740
+
description: Attributes for an event marking that a workflow execution was unpaused.
14541
14741
WorkflowExecutionUpdateAcceptedEventAttributes:
14542
14742
type: object
14543
14743
properties:
@@ -15043,7 +15243,9 @@ components:
15043
15243
description: The failure details
15044
15244
identity:
15045
15245
type: string
15046
-
description: "If a worker explicitly failed this task, this field contains the worker's identity. \n When the server generates the failure internally this field is set as 'history-service'."
15246
+
description: |-
15247
+
If a worker explicitly failed this task, this field contains the worker's identity.
15248
+
When the server generates the failure internally this field is set as 'history-service'.
15047
15249
baseRunId:
15048
15250
type: string
15049
15251
description: The original run id of the workflow. For reset workflow.
0 commit comments