Skip to content

Add Nexus workflow messaging actions - #464

Merged
stephanos merged 18 commits into
mainfrom
nexus-sdk-ergonomics-ops
Sep 9, 2026
Merged

stephanos merged 18 commits into
mainfrom
nexus-sdk-ergonomics-ops

Conversation

@stephanos

@stephanos stephanos commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Extend NexusWorkflowAction with signal and update variants using the existing DoSignal and DoUpdate action types.

@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch from 3c7f618 to e7241c7 Compare September 4, 2026 23:32
@stephanos
stephanos changed the base branch from per-sdk-namespace-stacked to stephanos/nexusAttachCallback September 4, 2026 23:32
@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch from e7241c7 to f2c1868 Compare September 5, 2026 01:41
@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch from f2c1868 to 2d87a80 Compare September 5, 2026 01:53
@stephanos stephanos changed the title Add signal, signal-with-start and update Nexus operations Add Nexus workflow messaging actions Sep 5, 2026
@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch 3 times, most recently from d019aab to 0e043c3 Compare September 7, 2026 15:50
@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch from 0e043c3 to a5b7081 Compare September 7, 2026 18:07
@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch from a5b7081 to 4b38d58 Compare September 7, 2026 18:35
@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch from 4b38d58 to 2694441 Compare September 7, 2026 21:09
@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch 2 times, most recently from 340ecd4 to 67a21ee Compare September 8, 2026 02:00
Comment thread loadgen/kitchen_sink_executor_test.go Outdated

execution := executions.Executions[0]
historyIter := temporalClient.GetWorkflowHistory(t.Context(), execution.Execution.WorkflowId, execution.Execution.RunId, false, enums.HISTORY_EVENT_FILTER_TYPE_ALL_EVENT)
func getWorkflowHistory(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simpler!

}
return "", nil, fmt.Errorf("do_update must recognizable variant")
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ new helpers for re-use

workflowAction := cmp.Or(action.WorkflowAction, &kitchensink.NexusWorkflowAction{})
if workflowAction.GetStart() == nil {
break
switch workflowAction.GetAction().(type) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is the main change:

@stephanos
stephanos marked this pull request as ready for review September 8, 2026 16:55
@stephanos
stephanos requested a review from a team as a code owner September 8, 2026 16:55
@stephanos
stephanos requested a review from a team as a code owner September 8, 2026 16:55
@stephanos
stephanos requested a review from mavemuri September 8, 2026 17:39
@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch from 73106ca to 5cd9c36 Compare September 8, 2026 20:49
return mapIsSuperset(x, yMap)
}
return false
case []any:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread workers/go/workerlib/kitchensink/kitchen_sink.go
TaskQueue: cmp.Or(input.GetStartOptions().GetTaskQueue(), temporalnexus.GetOperationInfo(ctx).TaskQueue),
WorkflowExecutionTimeout: 60 * time.Minute,
WorkflowIDConflictPolicy: startOptions.GetWorkflowIdConflictPolicy(),
WorkflowIDConflictPolicy: enumspb.WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING,

@mavemuri mavemuri Sep 8, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking if this is intentional - in the base pr, looks like this is in the proto - why hardcode it now? maybe a similar cmp.Or like above instead?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question! It was because Signal-with-Start I thought required USE_EXISTING, but I checked and it also supports TERMINATE_EXISTING. I'll make the change to use the start options 👍

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(server default is USE_EXISTING if it's not defined)

@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch from be3dc25 to 5720668 Compare September 9, 2026 02:05
Base automatically changed from stephanos/nexusAttachCallback to main September 9, 2026 03:01
@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch from 5720668 to ef69b93 Compare September 9, 2026 03:01
@stephanos
stephanos force-pushed the nexus-sdk-ergonomics-ops branch from ef69b93 to f6d9f64 Compare September 9, 2026 03:10
@stephanos
stephanos merged commit 1d64f11 into main Sep 9, 2026
46 checks passed
@stephanos
stephanos deleted the nexus-sdk-ergonomics-ops branch September 9, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants