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

Cancellation #4

Open
dfarr opened this issue Mar 11, 2024 · 2 comments
Open

Cancellation #4

dfarr opened this issue Mar 11, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request resonate-sdk Functionality or implementation is applicable to Resonate SDKs resonate-server Functionality or implementation is applicable to the Resonate Server
Milestone

Comments

@dfarr
Copy link
Member

dfarr commented Mar 11, 2024

Durable promises can be cancelled, this feature should be exposed to the user on the context object. When a context (which always maps to one durable promise) is cancelled, all child contexts should also be cancelled (recursively) if not already completed.

Ultimately a cancellation error should be returned to the user code where applicable.

@dfarr dfarr added the resonate-sdk Functionality or implementation is applicable to Resonate SDKs label Mar 11, 2024
@flossypurse flossypurse added enhancement New feature or request resonate-server Functionality or implementation is applicable to the Resonate Server labels Sep 24, 2024
@flossypurse flossypurse added this to the system v1.rc milestone Sep 24, 2024
@flossypurse
Copy link

status update

The Server supports setting a Promise to a "canceled" state.

On the Python SDK side, this feature is in the design stage.
The plan is to have it implemented in the Python SDK for the v1.rc

@flossypurse
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request resonate-sdk Functionality or implementation is applicable to Resonate SDKs resonate-server Functionality or implementation is applicable to the Resonate Server
Projects
None yet
Development

No branches or pull requests

2 participants