Consolidate kitchen sink Nexus operations - #361
Draft
stephanos wants to merge 8 commits into
Draft
Conversation
stephanos
force-pushed
the
stephanos/nexusAttachCallback
branch
from
May 22, 2026 20:27
a60aa73 to
217d576
Compare
stephanos
force-pushed
the
stephanos/nexusAttachCallback
branch
12 times, most recently
from
May 23, 2026 01:26
1810598 to
669f1e8
Compare
stephanos
force-pushed
the
stephanos/nexusAttachCallback
branch
from
September 4, 2026 23:08
669f1e8 to
ffdadf9
Compare
stephanos
force-pushed
the
stephanos/nexusAttachCallback
branch
from
September 5, 2026 01:51
8765ccf to
6d326bd
Compare
stephanos
force-pushed
the
stephanos/nexusAttachCallback
branch
from
September 5, 2026 01:57
6d326bd to
00a0c8d
Compare
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
| return fmt.Errorf("ExecuteOperation: %w", err) | ||
| } | ||
|
|
||
| if expectedOutput := nexusOp.GetExpectedOutput(); expectedOutput != nil { |
Collaborator
Author
There was a problem hiding this comment.
To match the workflow-based one.
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
| string workflow_id = 1; | ||
| string run_id = 2; | ||
| // Options used when the action may start a workflow. | ||
| NexusWorkflowStartOptions start_options = 3; |
Collaborator
Author
There was a problem hiding this comment.
This will be used with Signal in the next PR; that's why it's not the type for start.
stephanos
commented
Sep 5, 2026
|
|
||
| // Execute a Nexus operation | ||
| // Execute a Nexus operation. | ||
| message ExecuteNexusOperation { |
Collaborator
Author
There was a problem hiding this comment.
These message changes are the main change of the PR.
stephanos
commented
Sep 5, 2026
stephanos
commented
Sep 5, 2026
|
|
||
|
|
||
| @workflow.defn | ||
| class NexusHandlerWorkflow: |
Collaborator
Author
There was a problem hiding this comment.
Nexus is now using a kitchensink workflow when starting one.
stephanos
commented
Sep 5, 2026
| string endpoint = 1; | ||
| string service = 2; | ||
| string operation = 3; | ||
| ExecuteNexusOperation operation = 1; |
Collaborator
Author
There was a problem hiding this comment.
Breaking proto changes are fine here.
stephanos
commented
Sep 5, 2026
|
|
||
| func handleSendSignal(ctx workflow.Context, ws *KSWorkflowState, action *kitchensink.SendSignalAction) error { | ||
| return withAwaitableChoiceCustom(ctx, ws, func(ctx workflow.Context) workflow.Future { | ||
| return workflow.SignalExternalWorkflow(ctx, action.WorkflowId, action.RunId, action.SignalName, nil) |
Collaborator
Author
There was a problem hiding this comment.
Wasn't using Args before ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the special-purpose Nexus handler workflow and separate operations with one kitchen-sink
executeoperation.