Skip to content

Nexus minor README update #396

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

Merged
merged 5 commits into from
Mar 19, 2025
Merged

Conversation

yuandrew
Copy link
Contributor

@yuandrew yuandrew commented Mar 3, 2025

What was changed

Removed Public preview line now that nexus is GA.

Fixed some typos, added a feedback point on the nexus sample

Why?

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

nexus/README.md Outdated
Comment on lines 62 to 63
Nexus is currently available as
[Public Preview](https://docs.temporal.io/evaluate/development-production-features/release-stages).
[General Availability](https://docs.temporal.io/evaluate/development-production-features/release-stages#general-availability).
Copy link
Member

Choose a reason for hiding this comment

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

IMO we should just remove the whole statement about availability (GA is the default availability of all of our software unless stated otherwise)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense

@@ -32,6 +32,7 @@ func HelloCallerWorkflow(ctx workflow.Context, name string, language service.Lan

// Optionally wait for the operation to be started. NexusOperationExecution will contain the operation token in
// case this operation is asynchronous.
// TODO: Is it worth explaining what you can do with the nexus operation token?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@prasek small feedback on this sample, it's mentioned that there's an operation token if the operation is async, but as someone learning about nexus, I don't know why that's important or what its used for. I think if we mention the operation token here, we should give a little more information on its use

Copy link
Contributor

Choose a reason for hiding this comment

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

Just to note, please remove the TODO before merging

Copy link
Contributor

Choose a reason for hiding this comment

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

I do agree we should explain or link to an explanation of the token

Copy link

@prasek prasek Mar 19, 2025

Choose a reason for hiding this comment

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

@yuandrew thanks agree we should include more here from the content in https://docs.temporal.io/nexus/operations of note

Unlike a traditional RPC, an asynchronous Nexus Operation has an operation token that can be used to re-attach to a long-lived Nexus Operation, for example, one backed by a Temporal Workflow. Nexus Operations support a uniform interface to get the status of an operation or its result, receive a completion callback, or cancel the operation – all of which are fully integrated into the Temporal Platform.

Asynchronous Nexus Operations, created with the New-Workflow-Run-Operation SDK helper, will return a Nexus Operation token, that can be used to perform additional actions like canceling an Operation.

dropped a suggestion above.

@@ -32,6 +32,7 @@ func HelloCallerWorkflow(ctx workflow.Context, name string, language service.Lan

// Optionally wait for the operation to be started. NexusOperationExecution will contain the operation token in
// case this operation is asynchronous.
Copy link

Choose a reason for hiding this comment

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

Suggested change
// case this operation is asynchronous.
// case this operation is asynchronous, which is a handle that can be used to perform additional actions like cancelling an operation.

@yuandrew yuandrew enabled auto-merge (squash) March 19, 2025 18:50
@yuandrew yuandrew merged commit f743587 into temporalio:main Mar 19, 2025
3 checks passed
@yuandrew yuandrew deleted the nexus-readme-GA branch March 19, 2025 19: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