Skip to content

Commit 2fe3b23

Browse files
committed
Inline worklfow_id & run_id
1 parent cb54f14 commit 2fe3b23

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

temporal/api/history/v1/message.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ message WorkflowExecutionUpdateAdmittedEventAttributes {
869869
temporal.api.enums.v1.UpdateAdmittedEventOrigin origin = 2;
870870
}
871871

872-
// Attributes for an event marking that a workflow execution was paused.
872+
// Attributes for an event marking that a workflow execution was paused.
873873
message WorkflowExecutionPausedEventAttributes {
874874
// The identity of the client who paused the workflow execution.
875875
string identity = 1;

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,14 +2600,16 @@ message DescribeWorkerResponse {
26002600
message PauseWorkflowExecutionRequest {
26012601
// Namespace of the workflow to pause.
26022602
string namespace = 1;
2603-
// Execution info of the workflow to pause.
2604-
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
2603+
// ID of the workflow execution to be paused. Required.
2604+
string workflow_id = 2;
2605+
// Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused.
2606+
string run_id = 3;
26052607
// The identity of the client who initiated this request.
2606-
string identity = 3;
2608+
string identity = 4;
26072609
// Reason to pause the workflow execution.
2608-
string reason = 4;
2610+
string reason = 5;
26092611
// A unique identifier for this pause request for idempotence. Typically UUIDv4.
2610-
string request_id = 5;
2612+
string request_id = 6;
26112613
}
26122614

26132615
// Response to a successful PauseWorkflowExecution request.
@@ -2616,14 +2618,16 @@ message PauseWorkflowExecutionResponse { }
26162618
message UnpauseWorkflowExecutionRequest {
26172619
// Namespace of the workflow to unpause.
26182620
string namespace = 1;
2619-
// Execution info of the workflow to unpause.
2620-
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
2621+
// ID of the workflow execution to be paused. Required.
2622+
string workflow_id = 2;
2623+
// Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused.
2624+
string run_id = 3;
26212625
// The identity of the client who initiated this request.
2622-
string identity = 3;
2626+
string identity = 4;
26232627
// Reason to unpause the workflow execution.
2624-
string reason = 4;
2628+
string reason = 5;
26252629
// A unique identifier for this unpause request for idempotence. Typically UUIDv4.
2626-
string request_id = 5;
2630+
string request_id = 6;
26272631
}
26282632

26292633
// Response to a successful UnpauseWorkflowExecution request.

0 commit comments

Comments
 (0)