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

[Feature Request] Document Asynchronous Activity Completion in README #214

Open
send2vinnie opened this issue Mar 30, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@send2vinnie
Copy link

Allow the calling of Activity to return without the Activity Execution to complete. The Temporal Client can then be used to both Heartbeat Activity Execution progress and eventually provide complete the Activity Execution and provide a result.

@send2vinnie send2vinnie added the enhancement New feature or request label Mar 30, 2024
@cretz
Copy link
Member

cretz commented Apr 1, 2024

Asynchronous activity is already supported. You can throw new Temporalio.Activities.CompleteAsyncException() to tell the activity you'll be completing outside of the function, and use myClient.GetAsyncActivityHandle(...) to get a handle to manually heartbeat, complete, etc. The task token for use in that call is available via Temporalio.Activities.ActivityExecutionContext.Current.Info.TaskToken.

I will update the title of this issue to just make sure we document this in the README.

@cretz cretz changed the title [Feature Request] Support for Asynchronous Activity Completion [Feature Request] Document Asynchronous Activity Completion in README Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants