Skip to content

Commit 554e8e0

Browse files
authored
Remove skip_generate_workflow_task from signal APIs (#476)
1 parent c787dce commit 554e8e0

File tree

5 files changed

+15
-32
lines changed

5 files changed

+15
-32
lines changed

buf.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ build:
99
- google
1010
breaking:
1111
use:
12-
- WIRE_JSON
12+
# TODO (alex): revert it back to WIRE_JSON in follow up PR.
13+
- WIRE
1314
ignore:
1415
- google
1516
lint:

openapi/openapiv2.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5750,11 +5750,7 @@
57505750
},
57515751
"workflowStartDelay": {
57525752
"type": "string",
5753-
"description": "Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.\nNote that the signal will be delivered with the first workflow task. If the workflow gets\nanother SignalWithStartWorkflow before the delay and `skip_generate_workflow_task` is false\nor not set, a workflow task will be dispatched immediately and the rest of the delay period\nwill be ignored, even if that request also had a delay. Signal via SignalWorkflowExecution\nwill not unblock the workflow."
5754-
},
5755-
"skipGenerateWorkflowTask": {
5756-
"type": "boolean",
5757-
"description": "Indicates that a new workflow task should not be generated when this signal is received."
5753+
"description": "Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.\nNote that the signal will be delivered with the first workflow task. If the workflow gets\nanother SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately\nand the rest of the delay period will be ignored, even if that request also had a delay.\nSignal via SignalWorkflowExecution will not unblock the workflow."
57585754
},
57595755
"userMetadata": {
57605756
"$ref": "#/definitions/v1UserMetadata",
@@ -5802,10 +5798,6 @@
58025798
"$ref": "#/definitions/v1Header",
58035799
"description": "Headers that are passed with the signal to the processing workflow.\nThese can include things like auth or tracing tokens."
58045800
},
5805-
"skipGenerateWorkflowTask": {
5806-
"type": "boolean",
5807-
"description": "Indicates that a new workflow task should not be generated when this signal is received."
5808-
},
58095801
"links": {
58105802
"type": "array",
58115803
"items": {
@@ -12168,7 +12160,7 @@
1216812160
},
1216912161
"skipGenerateWorkflowTask": {
1217012162
"type": "boolean",
12171-
"description": "Indicates the signal did not generate a new workflow task when received."
12163+
"description": "This field is deprecated and never respected. It should always be set to false."
1217212164
},
1217312165
"externalWorkflowExecution": {
1217412166
"$ref": "#/definitions/v1WorkflowExecution",

openapi/openapiv3.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8272,13 +8272,9 @@ components:
82728272
description: |-
82738273
Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
82748274
Note that the signal will be delivered with the first workflow task. If the workflow gets
8275-
another SignalWithStartWorkflow before the delay and `skip_generate_workflow_task` is false
8276-
or not set, a workflow task will be dispatched immediately and the rest of the delay period
8277-
will be ignored, even if that request also had a delay. Signal via SignalWorkflowExecution
8278-
will not unblock the workflow.
8279-
skipGenerateWorkflowTask:
8280-
type: boolean
8281-
description: Indicates that a new workflow task should not be generated when this signal is received.
8275+
another SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately
8276+
and the rest of the delay period will be ignored, even if that request also had a delay.
8277+
Signal via SignalWorkflowExecution will not unblock the workflow.
82828278
userMetadata:
82838279
allOf:
82848280
- $ref: '#/components/schemas/UserMetadata'
@@ -8329,9 +8325,6 @@ components:
83298325
description: |-
83308326
Headers that are passed with the signal to the processing workflow.
83318327
These can include things like auth or tracing tokens.
8332-
skipGenerateWorkflowTask:
8333-
type: boolean
8334-
description: Indicates that a new workflow task should not be generated when this signal is received.
83358328
links:
83368329
type: array
83378330
items:
@@ -9691,7 +9684,7 @@ components:
96919684
description: "Headers that were passed by the sender of the signal and copied by temporal \n server into the workflow task."
96929685
skipGenerateWorkflowTask:
96939686
type: boolean
9694-
description: Indicates the signal did not generate a new workflow task when received.
9687+
description: This field is deprecated and never respected. It should always be set to false.
96959688
externalWorkflowExecution:
96969689
allOf:
96979690
- $ref: '#/components/schemas/WorkflowExecution'

temporal/api/history/v1/message.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ message WorkflowExecutionSignaledEventAttributes {
472472
// Headers that were passed by the sender of the signal and copied by temporal
473473
// server into the workflow task.
474474
temporal.api.common.v1.Header header = 4;
475-
// Indicates the signal did not generate a new workflow task when received.
476-
bool skip_generate_workflow_task = 5;
475+
// This field is deprecated and never respected. It should always be set to false.
476+
bool skip_generate_workflow_task = 5 [deprecated = true];
477477
// When signal origin is a workflow execution, this field is set.
478478
temporal.api.common.v1.WorkflowExecution external_workflow_execution = 6;
479479
}

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,7 @@ message SignalWorkflowExecutionRequest {
654654
// Headers that are passed with the signal to the processing workflow.
655655
// These can include things like auth or tracing tokens.
656656
temporal.api.common.v1.Header header = 8;
657-
// Indicates that a new workflow task should not be generated when this signal is received.
658-
bool skip_generate_workflow_task = 9;
657+
reserved 9;
659658

660659
// Links to be associated with the WorkflowExecutionSignaled event.
661660
repeated temporal.api.common.v1.Link links = 10;
@@ -708,13 +707,11 @@ message SignalWithStartWorkflowExecutionRequest {
708707
temporal.api.common.v1.Header header = 19;
709708
// Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
710709
// Note that the signal will be delivered with the first workflow task. If the workflow gets
711-
// another SignalWithStartWorkflow before the delay and `skip_generate_workflow_task` is false
712-
// or not set, a workflow task will be dispatched immediately and the rest of the delay period
713-
// will be ignored, even if that request also had a delay. Signal via SignalWorkflowExecution
714-
// will not unblock the workflow.
710+
// another SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately
711+
// and the rest of the delay period will be ignored, even if that request also had a delay.
712+
// Signal via SignalWorkflowExecution will not unblock the workflow.
715713
google.protobuf.Duration workflow_start_delay = 20;
716-
// Indicates that a new workflow task should not be generated when this signal is received.
717-
bool skip_generate_workflow_task = 21;
714+
reserved 21;
718715
// Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionInfo
719716
// for use by user interfaces to display the fixed as-of-start summary and details of the
720717
// workflow.

0 commit comments

Comments
 (0)