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

cancel execution despite hanging async resolvers #4267

Merged
merged 5 commits into from
Oct 31, 2024

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Oct 29, 2024

Prior to this pull request, cancellation works by checking the abort signal status during execution, and throwing the reason if the abort signal has been triggered. This fails if an asynchronous resolver hangs.
This pull request changes the cancellation method to wrap promises returned by resolvers so that they immediately reject on cancellation.

@yaacovCR yaacovCR requested a review from a team as a code owner October 29, 2024 11:41
Copy link

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@yaacovCR yaacovCR changed the base branch from introduce-complete-maybe to main October 29, 2024 20:26
@yaacovCR yaacovCR added the PR: feature 🚀 requires increase of "minor" version number label Oct 29, 2024
Copy link

netlify bot commented Oct 30, 2024

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 7791939
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/6722a54c7058310008d27013
😎 Deploy Preview https://deploy-preview-4267--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yaacovCR yaacovCR changed the title cancel execution despite pending resolvers cancel execution despite hanging async resolvers Oct 30, 2024
@yaacovCR yaacovCR merged commit e4d7e85 into main Oct 31, 2024
35 checks passed
@yaacovCR yaacovCR deleted the cancel-with-pending-resolver branch October 31, 2024 12:13
yaacovCR added a commit that referenced this pull request Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature 🚀 requires increase of "minor" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants