René's URL Explorer Experiment


Title: Task was destroyed but it is pending: _coro_creating_hub_and_span · Issue #2908 · getsentry/sentry-python · GitHub

Open Graph Title: Task was destroyed but it is pending: _coro_creating_hub_and_span · Issue #2908 · getsentry/sentry-python

X Title: Task was destroyed but it is pending: _coro_creating_hub_and_span · Issue #2908 · getsentry/sentry-python

Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.34.0 Steps to Reproduce Hey team, I'm having a lot of "Task was destroyed but it is pending!" issues reported at Sentry. I'm running Sanic (v23.6.0) and here's a sample of the erro...

Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.34.0 Steps to Reproduce Hey team, I'm having a lot of "Task was destroyed but it is pending!" issues reported at Sentry. I'm running Sanic (...

X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.34.0 Steps to Reproduce Hey team, I'm having a lot of "Task was destroyed but it is pending!" issues reported at Sentry. I'...

Opengraph URL: https://github.com/getsentry/sentry-python/issues/2908

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Task was destroyed but it is pending: _coro_creating_hub_and_span","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n1.34.0\n\n### Steps to Reproduce\n\nHey team,\r\n\r\nI'm having a lot of \"Task was destroyed but it is pending!\" issues reported at Sentry.\r\n\r\nI'm running Sanic (v23.6.0) and here's a sample of the errors:\r\n\r\nTask was destroyed but it is pending!\r\ntask: \u003cTask pending name='Task-532' coro=\u003cpatch_asyncio.\u003clocals>._sentry_task_factory.\u003clocals>._coro_creating_hub_and_span() running at /var/www/fernand/env/lib/python3.9/site-packages/sentry_sdk/integrations/asyncio.py:52> wait_for=\u003cFuture pending cb=[\u003cTaskWakeupMethWrapper object at 0x7f7af084d2b0>()]>>\r\n\r\nHere's a sample:\r\nhttps://cyril-nicodeme.sentry.io/issues/5081979263/events/6a88812f7d1d4c269d792b5f4b010541/\r\n\r\n(Hopefully, you can also access more details about the issue via the UUID internally).\n\n### Expected Result\n\nShould not have a \"Task was destroyed but it is pending!\" issue but properly send any issues\n\n### Actual Result\n\nFails with \"Task was destroyed but it is pending\"","author":{"url":"https://github.com/cnicodeme","@type":"Person","name":"cnicodeme"},"datePublished":"2024-03-26T14:48:41Z","url":"https://github.com/getsentry/sentry-python/issues/2908"}

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:3215914c-8029-033c-569a-dbdc1be61431
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id93D2:1201C:2FCAE7:414B22:6B00C466
html-safe-nonce68ea664338df16592dba13d5288fb9c47de29f4e31ed784208efa749f1c4b88c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0QyOjEyMDFDOjJGQ0FFNzo0MTRCMjI6NkIwMEM0NjYiLCJ2aXNpdG9yX2lkIjoiMjI3ODQ5NzY0MTQzMDA0MTcwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac864abedeadd5fb87e117e726a94f8f466b42947d7cf477a8c96d4b484ae1191b
hovercard-subject-tagissue:2208475362
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/getsentry/sentry-python/2908/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7c7971947ef22f2004f023b9b979a4093e207cdd3b1e405c277ab40801d9d308/getsentry/sentry-python/issues/2908
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7c7971947ef22f2004f023b9b979a4093e207cdd3b1e405c277ab40801d9d308/getsentry/sentry-python/issues/2908
og:image:altHow do you use Sentry? Sentry Saas (sentry.io) Version 1.34.0 Steps to Reproduce Hey team, I'm having a lot of "Task was destroyed but it is pending!" issues reported at Sentry. I'm running Sanic (...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecnicodeme
hostnamegithub.com
expected-hostnamegithub.com
None93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
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
release1fee81a280ea86312b69448e261b418189bfd5b5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/issues/2908#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F2908
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%2Fgetsentry%2Fsentry-python%2Fissues%2F2908
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=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/issues/2908
Reloadhttps://github.com/getsentry/sentry-python/issues/2908
Reloadhttps://github.com/getsentry/sentry-python/issues/2908
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2908
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2908
#4129https://github.com/getsentry/sentry-python/pull/4129
Task was destroyed but it is pending: _coro_creating_hub_and_spanhttps://github.com/getsentry/sentry-python/issues/2908#top
#4129https://github.com/getsentry/sentry-python/pull/4129
https://github.com/antonpirker
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
Integration: Asynciohttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Asyncio%22
Integration: Sanichttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Sanic%22
https://github.com/cnicodeme
cnicodemehttps://github.com/cnicodeme
on Mar 26, 2024https://github.com/getsentry/sentry-python/issues/2908#issue-2208475362
https://cyril-nicodeme.sentry.io/issues/5081979263/events/6a88812f7d1d4c269d792b5f4b010541/https://cyril-nicodeme.sentry.io/issues/5081979263/events/6a88812f7d1d4c269d792b5f4b010541/
Nexthttps://github.com/getsentry/sentry-python/issues/2908?timeline_page=1
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Mar 26, 2024https://github.com/getsentry/sentry-python/issues/2908#event-12251622599
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Mar 26, 2024https://github.com/getsentry/sentry-python/issues/2908#event-14883662917
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Mar 26, 2024https://github.com/getsentry/sentry-python/issues/2908
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908#issuecomment-2025031215
@cnicodemehttps://github.com/cnicodeme
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908#event-12280472162
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908
sentrivanahttps://github.com/sentrivana
Type: Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
Integration: Asynciohttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Asyncio%22
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908#event-12280473689
https://github.com/cnicodeme
cnicodemehttps://github.com/cnicodeme
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908#issuecomment-2025068141
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908#event-12280703234
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908#issuecomment-2025227591
docshttps://docs.sentry.io/platforms/python/configuration/options/#before-send
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908#event-12281886343
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908
https://github.com/cnicodeme
cnicodemehttps://github.com/cnicodeme
on Mar 28, 2024https://github.com/getsentry/sentry-python/issues/2908#issuecomment-2025239382
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Apr 23, 2024https://github.com/getsentry/sentry-python/issues/2908
https://github.com/knksmith57
knksmith57https://github.com/knksmith57
on Aug 16, 2024https://github.com/getsentry/sentry-python/issues/2908#issuecomment-2293828404
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Aug 16, 2024https://github.com/getsentry/sentry-python/issues/2908#event-13913031923
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Aug 16, 2024https://github.com/getsentry/sentry-python/issues/2908#event-14784634384
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Aug 16, 2024https://github.com/getsentry/sentry-python/issues/2908
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
on Aug 19, 2024https://github.com/getsentry/sentry-python/issues/2908#issuecomment-2296063687
@knksmith57https://github.com/knksmith57
the workaroundhttps://github.com/getsentry/sentry-python/issues/2908#issuecomment-2071671636
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Aug 19, 2024https://github.com/getsentry/sentry-python/issues/2908#event-13927338974
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Aug 19, 2024https://github.com/getsentry/sentry-python/issues/2908
stephanie-andersonhttps://github.com/stephanie-anderson
Type: Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on Nov 21, 2024https://github.com/getsentry/sentry-python/issues/2908#event-15380592936
antonpirkerhttps://github.com/antonpirker
Integration: Sanichttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Sanic%22
on Dec 10, 2024https://github.com/getsentry/sentry-python/issues/2908#event-15600547931
antonpirkerhttps://github.com/antonpirker
on Mar 12, 2025https://github.com/getsentry/sentry-python/issues/2908#event-16707095596
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
on Mar 12, 2025https://github.com/getsentry/sentry-python/issues/2908#issuecomment-2717763900
https://github.com/antonpirker/testing-sentry/tree/main/test-plain-python-asyncio-shutdownhttps://github.com/antonpirker/testing-sentry/tree/main/test-plain-python-asyncio-shutdown
#4129https://github.com/getsentry/sentry-python/pull/4129
antonpirkerhttps://github.com/antonpirker
completedhttps://github.com/getsentry/sentry-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4129https://github.com/getsentry/sentry-python/pull/4129
on Mar 12, 2025https://github.com/getsentry/sentry-python/issues/2908#event-16714613886
antonpirkerhttps://github.com/antonpirker
on Mar 12, 2025https://github.com/getsentry/sentry-python/issues/2908#event-16714613928
Improve asyncio integration error handling. (#4129)https://github.com/getsentry/sentry-python/commit/50b1919a9ddeb19138e9a8dc3510043d5cf00e41
#4129https://github.com/getsentry/sentry-python/pull/4129
https://docs.github.com/articles/closing-issues-via-commit-messages
50b1919https://github.com/getsentry/sentry-python/commit/50b1919a9ddeb19138e9a8dc3510043d5cf00e41
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
on Aug 12, 2025https://github.com/getsentry/sentry-python/issues/2908#event-19125002579
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-python/issues/2908
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2908
antonpirkerhttps://github.com/antonpirker
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
Integration: Asynciohttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Asyncio%22
Integration: Sanichttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Sanic%22
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
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.