Skip to content

Fix cancel before run #94

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 1 commit into from
Aug 4, 2022
Merged

Fix cancel before run #94

merged 1 commit into from
Aug 4, 2022

Conversation

cretz
Copy link
Member

@cretz cretz commented Aug 4, 2022

What was changed

Defer execution of cancel onto the event loop so if it's received before workflow task starts, the task will be able to start and can receive the cancel

Why?

Right now we can cancel an unstarted task which doesn't catch the cancel error and doesn't allow users to react to cancel

Checklist

  1. Closes Immediate start-then-cancel not working properly #91

@cretz cretz requested a review from a team August 4, 2022 13:04
@cretz cretz merged commit f560680 into temporalio:main Aug 4, 2022
@cretz cretz deleted the start-cancel branch August 4, 2022 15:53
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.

Immediate start-then-cancel not working properly
2 participants