Skip to content

Commit eed4e27

Browse files
authored
Update system Nexus signal-with-start WIT (#847)
Updates the System Nexus WIT for `SignalWithStartWorkflowExecution`. Changes: - Treat `request-id` as an internal placeholder so it is omitted from generated operation request APIs. - Treat `first-execution-run-id` as an internal placeholder so it is omitted from generated operation result APIs. - Add Python serialization-context metadata so request payloads use the target workflow serialization context.
1 parent 3ebdff4 commit eed4e27

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

nexus/workflow-service.wit

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ interface workflow-service {
6060
task-timeout: option<duration>,
6161
/// @nexus.omit
6262
identity: placeholder,
63-
/// @nexus.doc "Request ID used to deduplicate workflow start requests."
64-
request-id: option<string>,
63+
/// @nexus.omit
64+
request-id: placeholder,
6565
/// @nexus.doc "Behavior when a closed workflow with the same ID exists. Default is allow-duplicate."
6666
/// @nexus.proto-field "workflow_id_reuse_policy"
6767
/// @nexus.default "allow-duplicate"
@@ -104,7 +104,8 @@ interface workflow-service {
104104
started: option<bool>,
105105
/// @nexus.omit
106106
signal-link: placeholder,
107-
first-execution-run-id: string,
107+
/// @nexus.omit
108+
first-execution-run-id: placeholder,
108109
}
109110

110111
/// @nexus.doc
@@ -119,6 +120,7 @@ interface workflow-service {
119120
/// dotnet-type="Temporalio.Workflows.ExternalWorkflowHandle"
120121
/// dotnet="Temporalio.Workflows.Workflow.GetExternalWorkflowHandle(request.Id, result.RunId)"
121122
/// @nexus.operation name="SignalWithStartWorkflowExecution"
123+
/// @nexus.serialization-context python="signal_with_start_workflow_serialization_context"
122124
/// @nexus.experimental
123125
signal-with-start-workflow: func(
124126
request: signal-with-start-workflow-request,

0 commit comments

Comments
 (0)