Skip to content

Commit 5bf4f03

Browse files
committed
merge conflicts
2 parents dbacbd9 + 9109a85 commit 5bf4f03

6 files changed

Lines changed: 253 additions & 139 deletions

File tree

openapi/openapiv2.json

Lines changed: 174 additions & 131 deletions
Large diffs are not rendered by default.

openapi/openapiv3.yaml

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,6 +2012,7 @@ paths:
20122012
- TASK_QUEUE_KIND_UNSPECIFIED
20132013
- TASK_QUEUE_KIND_NORMAL
20142014
- TASK_QUEUE_KIND_STICKY
2015+
- TASK_QUEUE_KIND_WORKER_COMMANDS
20152016
type: string
20162017
format: enum
20172018
- name: taskQueue.normalName
@@ -6678,6 +6679,7 @@ paths:
66786679
- TASK_QUEUE_KIND_UNSPECIFIED
66796680
- TASK_QUEUE_KIND_NORMAL
66806681
- TASK_QUEUE_KIND_STICKY
6682+
- TASK_QUEUE_KIND_WORKER_COMMANDS
66816683
type: string
66826684
format: enum
66836685
- name: taskQueue.normalName
@@ -12588,18 +12590,16 @@ components:
1258812590
properties:
1258912591
attachRequestId:
1259012592
type: boolean
12591-
description: Attaches the request ID to the running workflow.
12593+
description: Attaches the request ID to the running execution.
1259212594
attachCompletionCallbacks:
1259312595
type: boolean
12594-
description: Attaches the completion callbacks to the running workflow.
12596+
description: Attaches the completion callbacks to the running execution.
1259512597
attachLinks:
1259612598
type: boolean
12597-
description: Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.
12599+
description: Attaches the links to the running execution.
1259812600
description: |-
12599-
When StartWorkflowExecution uses the conflict policy WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING and
12600-
there is already an existing running workflow, OnConflictOptions defines actions to be taken on
12601-
the existing running workflow. In this case, it will create a WorkflowExecutionOptionsUpdatedEvent
12602-
history event in the running workflow with the changes requested in this object.
12601+
When starting an execution with a conflict policy that uses an existing execution and there is already an existing
12602+
running execution, OnConflictOptions defines actions to be taken on the existing running execution.
1260312603
Outcome:
1260412604
type: object
1260512605
properties:
@@ -15109,6 +15109,13 @@ components:
1510915109
started:
1511015110
type: boolean
1511115111
description: If true, a new workflow was started.
15112+
signalLink:
15113+
allOf:
15114+
- $ref: '#/components/schemas/Link'
15115+
description: |-
15116+
Link to be associated with the WorkflowExecutionSignaled event.
15117+
Added on the response to propagate the backlink.
15118+
Available from Temporal server 1.31 and up.
1511215119
SignalWorkflowExecutionRequest:
1511315120
type: object
1511415121
properties:
@@ -15149,7 +15156,14 @@ components:
1514915156
- temporal.api.workflow.v1.PostResetOperation.SignalWorkflow.
1515015157
SignalWorkflowExecutionResponse:
1515115158
type: object
15152-
properties: {}
15159+
properties:
15160+
link:
15161+
allOf:
15162+
- $ref: '#/components/schemas/Link'
15163+
description: |-
15164+
Link to be associated with the WorkflowExecutionSignaled event.
15165+
Added on the response to propagate the backlink.
15166+
Available from Temporal server 1.31 and up.
1515315167
StartActivityExecutionRequest:
1515415168
type: object
1515515169
properties:
@@ -15267,6 +15281,10 @@ components:
1526715281
description: |-
1526815282
Links to be associated with the activity. Callbacks may also have associated links;
1526915283
links already included with a callback should not be duplicated here.
15284+
onConflictOptions:
15285+
allOf:
15286+
- $ref: '#/components/schemas/OnConflictOptions'
15287+
description: Options for handling conflicts when using ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING.
1527015288
StartActivityExecutionResponse:
1527115289
type: object
1527215290
properties:
@@ -15731,6 +15749,7 @@ components:
1573115749
- TASK_QUEUE_KIND_UNSPECIFIED
1573215750
- TASK_QUEUE_KIND_NORMAL
1573315751
- TASK_QUEUE_KIND_STICKY
15752+
- TASK_QUEUE_KIND_WORKER_COMMANDS
1573415753
type: string
1573515754
description: 'Default: TASK_QUEUE_KIND_NORMAL.'
1573615755
format: enum
@@ -18149,6 +18168,11 @@ components:
1814918168
allOf:
1815018169
- $ref: '#/components/schemas/WorkflowExecution'
1815118170
description: When signal origin is a workflow execution, this field is set.
18171+
requestId:
18172+
type: string
18173+
description: |-
18174+
The request ID of the Signal request, used by the server to attach this to
18175+
the correct Event ID when generating link.
1815218176
WorkflowExecutionStartedEventAttributes:
1815318177
type: object
1815418178
properties:
@@ -18389,6 +18413,16 @@ components:
1838918413

1839018414
Used internally by the server during continue-as-new and retry.
1839118415
Should not be read or interpreted by SDKs.
18416+
timeSkippingConfig:
18417+
allOf:
18418+
- $ref: '#/components/schemas/TimeSkippingConfig'
18419+
description: |-
18420+
Initial time-skipping configuration for this workflow execution, recorded at start time.
18421+
This may have been set explicitly via the start workflow request, or propagated from a
18422+
parent/previous execution.
18423+
18424+
The configuration may be updated after start via UpdateWorkflowExecutionOptions, which
18425+
will be reflected in the WorkflowExecutionOptionsUpdatedEvent.
1839218426
description: Always the first event in workflow history
1839318427
WorkflowExecutionTerminatedEventAttributes:
1839418428
type: object

temporal/api/common/v1/message.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,3 +363,14 @@ message WorkerSelector {
363363
string worker_instance_key = 1;
364364
}
365365
}
366+
367+
// When starting an execution with a conflict policy that uses an existing execution and there is already an existing
368+
// running execution, OnConflictOptions defines actions to be taken on the existing running execution.
369+
message OnConflictOptions {
370+
// Attaches the request ID to the running execution.
371+
bool attach_request_id = 1;
372+
// Attaches the completion callbacks to the running execution.
373+
bool attach_completion_callbacks = 2;
374+
// Attaches the links to the running execution.
375+
bool attach_links = 3;
376+
}

temporal/api/enums/v1/task_queue.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ enum TaskQueueKind {
3131
//
3232
// Sticky queues are only for workflow tasks. There are no sticky task queues for activities.
3333
TASK_QUEUE_KIND_STICKY = 2;
34+
// A worker-commands task queue is used for server-to-worker communication (e.g. activity
35+
// cancellations). These queues are ephemeral and per-worker-process — they exist only for
36+
// the lifetime of the worker process. Used with TASK_QUEUE_TYPE_NEXUS and polled via
37+
// PollNexusTaskQueue.
38+
TASK_QUEUE_KIND_WORKER_COMMANDS = 3;
3439
}
3540

3641
enum TaskQueueType {

temporal/api/history/v1/message.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@ message WorkflowExecutionStartedEventAttributes {
196196
// Used internally by the server during continue-as-new and retry.
197197
// Should not be read or interpreted by SDKs.
198198
DeclinedTargetVersionUpgrade declined_target_version_upgrade = 40;
199+
200+
// Initial time-skipping configuration for this workflow execution, recorded at start time.
201+
// This may have been set explicitly via the start workflow request, or propagated from a
202+
// parent/previous execution.
203+
//
204+
// The configuration may be updated after start via UpdateWorkflowExecutionOptions, which
205+
// will be reflected in the WorkflowExecutionOptionsUpdatedEvent.
206+
temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 41;
199207
}
200208

201209
// Wrapper for a target deployment version that the SDK declined to upgrade to.
@@ -604,6 +612,9 @@ message WorkflowExecutionSignaledEventAttributes {
604612
bool skip_generate_workflow_task = 5 [deprecated = true];
605613
// When signal origin is a workflow execution, this field is set.
606614
temporal.api.common.v1.WorkflowExecution external_workflow_execution = 6;
615+
// The request ID of the Signal request, used by the server to attach this to
616+
// the correct Event ID when generating link.
617+
string request_id = 7;
607618
}
608619

609620
message WorkflowExecutionTerminatedEventAttributes {

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,10 @@ message SignalWorkflowExecutionRequest {
793793
}
794794

795795
message SignalWorkflowExecutionResponse {
796+
// Link to be associated with the WorkflowExecutionSignaled event.
797+
// Added on the response to propagate the backlink.
798+
// Available from Temporal server 1.31 and up.
799+
temporal.api.common.v1.Link link = 1;
796800
}
797801

798802
message SignalWithStartWorkflowExecutionRequest {
@@ -865,6 +869,10 @@ message SignalWithStartWorkflowExecutionResponse {
865869
string run_id = 1;
866870
// If true, a new workflow was started.
867871
bool started = 2;
872+
// Link to be associated with the WorkflowExecutionSignaled event.
873+
// Added on the response to propagate the backlink.
874+
// Available from Temporal server 1.31 and up.
875+
temporal.api.common.v1.Link signal_link = 3;
868876
}
869877

870878
message ResetWorkflowExecutionRequest {
@@ -3078,6 +3086,8 @@ message StartActivityExecutionRequest {
30783086
// Links to be associated with the activity. Callbacks may also have associated links;
30793087
// links already included with a callback should not be duplicated here.
30803088
repeated temporal.api.common.v1.Link links = 20;
3089+
// Options for handling conflicts when using ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING.
3090+
temporal.api.common.v1.OnConflictOptions on_conflict_options = 21;
30813091
}
30823092

30833093
message StartActivityExecutionResponse {

0 commit comments

Comments
 (0)