Skip to content

Conversation

@pdoerner
Copy link
Contributor

READ BEFORE MERGING: All PRs require approval by both Server AND SDK teams before merging! This is why the number of required approvals is "2" and not "1"--two reviewers from the same team is NOT sufficient. If your PR is not approved by someone in BOTH teams, it may be summarily reverted.

What changed?
Adding a new field for completion callbacks to SignalWithStartWorkflowExecutionRequest

Why?
So that Nexus operations which use SignalWithStart can be informed of the workflow's completion.

Breaking changes

Server PR

@pdoerner pdoerner requested review from a team as code owners January 24, 2025 21:03
@pdoerner pdoerner requested a review from bergundy January 24, 2025 21:10
Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

We don't need this for Nexus FTR, SignalWithStartOperation is about sending the signal and immediately completing, we don't want to tie the operation completion to the workflow completion.

temporal.api.workflow.v1.VersioningOverride versioning_override = 25;
// Callbacks to be called by the server when this workflow reaches a terminal state.
// If the workflow continues-as-new, these callbacks will be carried over to the new execution.
// Callbacks will not be deduplicated if the workflow is already started with callbacks.
Copy link
Member

@cretz cretz Jan 24, 2025

Choose a reason for hiding this comment

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

What happens to this list when a workflow already exists? Is it discarded like it is for other start calls that don't start a workflow? Can we accept OnConflictOptions from #510 to be clear what side effecting action is taken on already-existing workflows?

@pdoerner
Copy link
Contributor Author

Decided this is not required for Nexus, so no need to add it right now.

@pdoerner pdoerner closed this Jan 24, 2025
@pdoerner pdoerner deleted the signal-with-start-callbacks branch January 24, 2025 21:40
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.

4 participants