René's URL Explorer Experiment


Title: Cancel resolver tasks if execution of an operation is terminated · Issue #217 · graphql-python/graphql-core · GitHub

Open Graph Title: Cancel resolver tasks if execution of an operation is terminated · Issue #217 · graphql-python/graphql-core

X Title: Cancel resolver tasks if execution of an operation is terminated · Issue #217 · graphql-python/graphql-core

Description: TL;DR Would it be possible to cancel outstanding resolver tasks as soon as before execution of a GraphQL operation is terminated? Outstanding / unused tasks can happen as a result of an incoercible field resolver error. These outstanding...

Open Graph Description: TL;DR Would it be possible to cancel outstanding resolver tasks as soon as before execution of a GraphQL operation is terminated? Outstanding / unused tasks can happen as a result of an incoercible...

X Description: TL;DR Would it be possible to cancel outstanding resolver tasks as soon as before execution of a GraphQL operation is terminated? Outstanding / unused tasks can happen as a result of an incoercible...

Opengraph URL: https://github.com/graphql-python/graphql-core/issues/217

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cancel resolver tasks if execution of an operation is terminated","articleBody":"### TL;DR\r\n\r\nWould it be possible to cancel outstanding resolver tasks ~as soon as~ _before_ execution of a GraphQL operation is terminated? Outstanding / unused tasks can happen as a result of an incoercible field resolver error.\r\n\r\nThese outstanding tasks can run well after lifecycle hooks responsible for cleaning up their context have completed. As a result, they often fail and cause a lot of noisy errors for us. \r\n\r\n### More details\r\n\r\nHello!\r\n\r\nI'm coming from the `strawberry-graphql` project. We're running into a problem with abandoned resolver tasks not being cancelled, and thus failing in unpredictable ways.\r\n\r\nStrawberry has an [extensions framework](https://strawberry.rocks/docs/guides/custom-extensions#execution-context) which allows you to wrap the execution phase of your operation processing in hooks – running code before and after execution of resolvers. We use these hooks to manage (set up and tear down) some state needed by the resolvers.\r\n\r\nHowever, when a resolver of a non-nullable field fails, it may lead to the results of some other resolvers being no longer necessary. It appears that `graphql-core` will then short-circuit returning a result, while the no-longer-necessary resolvers are still running. We see that they can continue running well after the HTTP response was returned.\r\n\r\nThe problem is that Strawberry's lifecycle hooks (and I also imagine - the webserver's) would have completed by that time. As a result, we do things like terminate the DB session – making it very likely that these outstanding tasks will fail with various esoteric errors. This causes a lot of noise in our observability suite – which we'd love to avoid.\r\n\r\nSee https://github.com/strawberry-graphql/strawberry/issues/3414 for more details, and https://github.com/strawberry-graphql/strawberry/issues/3414#issuecomment-2012060461 for the comment which recommends I report the issue here.","author":{"url":"https://github.com/kkom","@type":"Person","name":"kkom"},"datePublished":"2024-03-22T01:29:58Z","url":"https://github.com/graphql-python/graphql-core/issues/217"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1d9ef3f8-d1ee-69fd-c2fd-0f1366d0a452
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE972:1833B7:113B361:1702420:6AFFC7E0
html-safe-noncee3004eeeef3c6f27b506743ef1e1ca8befed591badb36b5f6888689b2084eba6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTcyOjE4MzNCNzoxMTNCMzYxOjE3MDI0MjA6NkFGRkM3RTAiLCJ2aXNpdG9yX2lkIjoiMzk3MjM2OTExMzAzMTg4NjgxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf1594fbbacfb9567f71c902108a73f1b762304ac6af468569c045045be92d361
hovercard-subject-tagissue:2201502442
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/graphql-python/graphql-core/217/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bcf2225b2bce31cd5556577781e4b73a7ab49219533ea414e4a3b3e61c63a65b/graphql-python/graphql-core/issues/217
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bcf2225b2bce31cd5556577781e4b73a7ab49219533ea414e4a3b3e61c63a65b/graphql-python/graphql-core/issues/217
og:image:altTL;DR Would it be possible to cancel outstanding resolver tasks as soon as before execution of a GraphQL operation is terminated? Outstanding / unused tasks can happen as a result of an incoercible...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekkom
hostnamegithub.com
expected-hostnamegithub.com
None1e805b832df235bb21305db712c3b6432920019dfc12cb25b9cb8d3b0c9403cf
turbo-cache-controlno-preview
go-importgithub.com/graphql-python/graphql-core git https://github.com/graphql-python/graphql-core.git
octolytics-dimension-user_id15002022
octolytics-dimension-user_logingraphql-python
octolytics-dimension-repository_id143207933
octolytics-dimension-repository_nwographql-python/graphql-core
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143207933
octolytics-dimension-repository_network_root_nwographql-python/graphql-core
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8fa4a54e6871c7908eda1c246ad5972982c0b59d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/graphql-python/graphql-core/issues/217#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-python%2Fgraphql-core%2Fissues%2F217
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-python%2Fgraphql-core%2Fissues%2F217
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=graphql-python%2Fgraphql-core
Reloadhttps://github.com/graphql-python/graphql-core/issues/217
Reloadhttps://github.com/graphql-python/graphql-core/issues/217
Reloadhttps://github.com/graphql-python/graphql-core/issues/217
graphql-pythonhttps://github.com/graphql-python
graphql-corehttps://github.com/graphql-python/graphql-core
Codehttps://github.com/graphql-python/graphql-core
Issues24 (24)https://github.com/graphql-python/graphql-core/issues
Pull requests3 (3)https://github.com/graphql-python/graphql-core/pulls
Actionshttps://github.com/graphql-python/graphql-core/actions
Projectshttps://github.com/graphql-python/graphql-core/projects
Security and quality3 (3)https://github.com/graphql-python/graphql-core/security
Insightshttps://github.com/graphql-python/graphql-core/insights
https://github.com/graphql-python/graphql-core
New issuehttps://github.com/login?return_to=https://github.com/graphql-python/graphql-core/issues/217
New issuehttps://github.com/login?return_to=https://github.com/graphql-python/graphql-core/issues/217
Cancel resolver tasks if execution of an operation is terminatedhttps://github.com/graphql-python/graphql-core/issues/217#top
help wantedExtra attention is neededhttps://github.com/graphql-python/graphql-core/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
investigateNeeds investigaton or experimentationhttps://github.com/graphql-python/graphql-core/issues?q=state%3Aopen%20label%3A%22investigate%22
https://github.com/kkom
kkomhttps://github.com/kkom
on Mar 22, 2024https://github.com/graphql-python/graphql-core/issues/217#issue-2201502442
extensions frameworkhttps://strawberry.rocks/docs/guides/custom-extensions#execution-context
strawberry-graphql/strawberry#3414https://github.com/strawberry-graphql/strawberry/issues/3414
strawberry-graphql/strawberry#3414 (comment)https://github.com/strawberry-graphql/strawberry/issues/3414#issuecomment-2012060461
Citohttps://github.com/Cito
investigateNeeds investigaton or experimentationhttps://github.com/graphql-python/graphql-core/issues?q=state%3Aopen%20label%3A%22investigate%22
on Mar 22, 2024https://github.com/graphql-python/graphql-core/issues/217#event-12221019986
https://github.com/Cito
Citohttps://github.com/Cito
on Mar 22, 2024https://github.com/graphql-python/graphql-core/issues/217#issuecomment-2015919484
https://github.com/kkom
kkomhttps://github.com/kkom
on Mar 23, 2024https://github.com/graphql-python/graphql-core/issues/217#issuecomment-2016240039
@Citohttps://github.com/Cito
https://github.com/kkom
kkomhttps://github.com/kkom
on Mar 23, 2024https://github.com/graphql-python/graphql-core/issues/217#issuecomment-2016428036
https://github.com/Cito
Citohttps://github.com/Cito
on Mar 23, 2024https://github.com/graphql-python/graphql-core/issues/217#issuecomment-2016557129
@kkomhttps://github.com/kkom
#166https://github.com/graphql-python/graphql-core/issues/166
https://github.com/kkom
kkomhttps://github.com/kkom
on Mar 24, 2024https://github.com/graphql-python/graphql-core/issues/217#issuecomment-2016974035
@Citohttps://github.com/Cito
https://github.com/graingert/taskgrouphttps://github.com/graingert/taskgroup
https://github.com/Tinche/quattrohttps://github.com/Tinche/quattro
sorting the error list to make it deterministichttps://github.com/graphql-python/graphql-core/blob/98b44cc2c950d3ecbd8c275c5ab81b678181718c/src/graphql/execution/execute.py#L775-L779
https://github.com/kkom
kkomhttps://github.com/kkom
on Mar 24, 2024https://github.com/graphql-python/graphql-core/issues/217#issuecomment-2016975083
https://github.com/Cito
Citohttps://github.com/Cito
on Mar 25, 2024https://github.com/graphql-python/graphql-core/issues/217#issuecomment-2018914393
Citohttps://github.com/Cito
help wantedExtra attention is neededhttps://github.com/graphql-python/graphql-core/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Jan 25, 2025https://github.com/graphql-python/graphql-core/issues/217#event-16068214344
https://github.com/Cito
Citohttps://github.com/Cito
on Jan 25, 2025https://github.com/graphql-python/graphql-core/issues/217#issuecomment-2614094428
Sign up for freehttps://github.com/signup?return_to=https://github.com/graphql-python/graphql-core/issues/217
Sign in to commenthttps://github.com/login?return_to=https://github.com/graphql-python/graphql-core/issues/217
help wantedExtra attention is neededhttps://github.com/graphql-python/graphql-core/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
investigateNeeds investigaton or experimentationhttps://github.com/graphql-python/graphql-core/issues?q=state%3Aopen%20label%3A%22investigate%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.