Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Nexus sync client handler #2403

Merged

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

Remove Nexus sync client handler, users can now get the client with Nexus.getOperationContext().getWorkflowClient()

@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner February 7, 2025 06:47
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.

No blocking comments for this PR but we should do another round on the API to see if we can get more consistency across the languages.

@@ -52,9 +36,8 @@ public static <T, R> OperationHandler<T, R> sync(
public static <T, R> OperationHandler<T, R> fromWorkflowMethod(
WorkflowMethodFactory<T, R> startMethod) {
return new RunWorkflowOperation<>(
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't have to be in this PR but I would to call this WorkflowRunOperation across all SDKs.

* Get a {@link WorkflowClient} that can be used to start interact with the Temporal service from
* a Nexus handler.
*/
WorkflowClient getWorkflowClient();
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a method to get the nexus context too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If a use case comes up yes, at least internally.

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit 32df8d4 into temporalio:master Feb 7, 2025
8 checks passed
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