René's URL Explorer Experiment


Title: Add async task background worker by srothh · Pull Request #4591 · getsentry/sentry-python · GitHub

Open Graph Title: Add async task background worker by srothh · Pull Request #4591 · getsentry/sentry-python

X Title: Add async task background worker by srothh · Pull Request #4591 · getsentry/sentry-python

Description: The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.

Open Graph Description: Add a new implementation of the transport background worker based on an async task. This worker mostly mirrors the same functionality as the thread-based worker, with the exception that it exposes ...

X Description: Add a new implementation of the transport background worker based on an async task. This worker mostly mirrors the same functionality as the thread-based worker, with the exception that it exposes ...

Opengraph URL: https://github.com/getsentry/sentry-python/pull/4591

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:906bdabe-b736-698e-2b27-b16c8df026a0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDDDE:2D8AFD:27B8B4:345236:6B00C0BC
html-safe-noncea7f26175be8c2916c0887c516a887ac7706270ce54356f049b119fcc5190e414
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERERFOjJEOEFGRDoyN0I4QjQ6MzQ1MjM2OjZCMDBDMEJDIiwidmlzaXRvcl9pZCI6IjI1NTI1ODgxOTkyNjQzMDUzNDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd315c00c00e4abcb63c2f7d6c8dff4228b8fbc439f847954f7af62542dde71d1
hovercard-subject-tagpull_request:2674039437
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-python/pull/4591/commits
twitter:imagehttps://opengraph.githubassets.com/daa76d906e317a258113adfa96a15a9c9f605ff26e9cbbe2817caeff2131b921/getsentry/sentry-python/pull/4591
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/daa76d906e317a258113adfa96a15a9c9f605ff26e9cbbe2817caeff2131b921/getsentry/sentry-python/pull/4591
og:image:altAdd a new implementation of the transport background worker based on an async task. This worker mostly mirrors the same functionality as the thread-based worker, with the exception that it exposes ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesrothh
hostnamegithub.com
expected-hostnamegithub.com
None93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415
turbo-cache-controlno-cache
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-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/4591/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4591%2Fcommits
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%2Fpull%2F4591%2Fcommits
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/4591/commits
Reloadhttps://github.com/getsentry/sentry-python/pull/4591/commits
Reloadhttps://github.com/getsentry/sentry-python/pull/4591/commits
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
sl0thentr0pyhttps://github.com/sl0thentr0py
srothh/transport-class-hierarchyhttps://github.com/getsentry/sentry-python/tree/srothh/transport-class-hierarchy
srothh/async-task-workerhttps://github.com/getsentry/sentry-python/tree/srothh/async-task-worker
Conversationhttps://github.com/getsentry/sentry-python/pull/4591
Commits22 (22)https://github.com/getsentry/sentry-python/pull/4591/commits
Checkshttps://github.com/getsentry/sentry-python/pull/4591/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/4591/files
Add async task background workerhttps://github.com/getsentry/sentry-python/pull/4591/commits#top
sl0thentr0pyhttps://github.com/sl0thentr0py
srothh/transport-class-hierarchyhttps://github.com/getsentry/sentry-python/tree/srothh/transport-class-hierarchy
srothh/async-task-workerhttps://github.com/getsentry/sentry-python/tree/srothh/async-task-worker
ref(transport): Add abstract base class for worker implementationhttps://github.com/getsentry/sentry-python/pull/4591/commits/9f24136a4eaf618a683ed63a78498fb6995036e4
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
9f24136https://github.com/getsentry/sentry-python/pull/4591/commits/9f24136a4eaf618a683ed63a78498fb6995036e4
https://github.com/getsentry/sentry-python/tree/9f24136a4eaf618a683ed63a78498fb6995036e4
ref(transport): Add _create_worker factory method to Transporthttps://github.com/getsentry/sentry-python/pull/4591/commits/001f36cbf4cf4f8c40ee49e318f88911eaba7fbd
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
001f36chttps://github.com/getsentry/sentry-python/pull/4591/commits/001f36cbf4cf4f8c40ee49e318f88911eaba7fbd
https://github.com/getsentry/sentry-python/tree/001f36cbf4cf4f8c40ee49e318f88911eaba7fbd
ref(worker): Add flush_async method to Worker ABChttps://github.com/getsentry/sentry-python/pull/4591/commits/401b1bcedc0f92322234f23cb45bc2a49715aec1
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
401b1bchttps://github.com/getsentry/sentry-python/pull/4591/commits/401b1bcedc0f92322234f23cb45bc2a49715aec1
https://github.com/getsentry/sentry-python/tree/401b1bcedc0f92322234f23cb45bc2a49715aec1
ref(worker): Move worker flush_async from Worker ABChttps://github.com/getsentry/sentry-python/pull/4591/commits/3f43d8fc0f464a10d568d86bf94ee0ec1346a2ab
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
3f43d8fhttps://github.com/getsentry/sentry-python/pull/4591/commits/3f43d8fc0f464a10d568d86bf94ee0ec1346a2ab
https://github.com/getsentry/sentry-python/tree/3f43d8fc0f464a10d568d86bf94ee0ec1346a2ab
ref(worker): Amend function signature for coroutineshttps://github.com/getsentry/sentry-python/pull/4591/commits/15fa295611edd059d79f2a6e0aedeb5db1707ca2
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
15fa295https://github.com/getsentry/sentry-python/pull/4591/commits/15fa295611edd059d79f2a6e0aedeb5db1707ca2
https://github.com/getsentry/sentry-python/tree/15fa295611edd059d79f2a6e0aedeb5db1707ca2
ref(worker): Add missing docstrings to worker ABChttps://github.com/getsentry/sentry-python/pull/4591/commits/ef780f341f994f3230e95c488f53945296e5adb8
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
ef780f3https://github.com/getsentry/sentry-python/pull/4591/commits/ef780f341f994f3230e95c488f53945296e5adb8
https://github.com/getsentry/sentry-python/tree/ef780f341f994f3230e95c488f53945296e5adb8
feat(transport): Add an async task-based worker for transporthttps://github.com/getsentry/sentry-python/pull/4591/commits/f63e46fabdeffa4a59dc04e71f068f09be79ebf3
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
f63e46fhttps://github.com/getsentry/sentry-python/pull/4591/commits/f63e46fabdeffa4a59dc04e71f068f09be79ebf3
https://github.com/getsentry/sentry-python/tree/f63e46fabdeffa4a59dc04e71f068f09be79ebf3
ref(worker): Make worker work with new ABC interfacehttps://github.com/getsentry/sentry-python/pull/4591/commits/18042718e28908218f66a98ac1f1d4d8a0e877e9
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
1804271https://github.com/getsentry/sentry-python/pull/4591/commits/18042718e28908218f66a98ac1f1d4d8a0e877e9
https://github.com/getsentry/sentry-python/tree/18042718e28908218f66a98ac1f1d4d8a0e877e9
fix(worker): Check if callbacks from worker queue are coroutines or functionshttps://github.com/getsentry/sentry-python/pull/4591/commits/11da869c06d3774026ec3f9d1010a091cbec05b3
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
11da869https://github.com/getsentry/sentry-python/pull/4591/commits/11da869c06d3774026ec3f9d1010a091cbec05b3
https://github.com/getsentry/sentry-python/tree/11da869c06d3774026ec3f9d1010a091cbec05b3
ref(worker): Amend return type of submit and flush to accomodate for coroutineshttps://github.com/getsentry/sentry-python/pull/4591/commits/779a0d6ac83f7192b9fbf31339c716ddab675a30
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
779a0d6https://github.com/getsentry/sentry-python/pull/4591/commits/779a0d6ac83f7192b9fbf31339c716ddab675a30
https://github.com/getsentry/sentry-python/tree/779a0d6ac83f7192b9fbf31339c716ddab675a30
ref(worker): Add type parameters for AsyncWorker variableshttps://github.com/getsentry/sentry-python/pull/4591/commits/0895d234cf93c404d850104e9a492a69be76e61f
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
0895d23https://github.com/getsentry/sentry-python/pull/4591/commits/0895d234cf93c404d850104e9a492a69be76e61f
https://github.com/getsentry/sentry-python/tree/0895d234cf93c404d850104e9a492a69be76e61f
ref(worker): Remove loop upon killing workerhttps://github.com/getsentry/sentry-python/pull/4591/commits/bbf426bee0662be8f02ecc590808a8380ad4b7f5
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
bbf426bhttps://github.com/getsentry/sentry-python/pull/4591/commits/bbf426bee0662be8f02ecc590808a8380ad4b7f5
https://github.com/getsentry/sentry-python/tree/bbf426bee0662be8f02ecc590808a8380ad4b7f5
feat(worker): Enable concurrent callbacks on async task workerhttps://github.com/getsentry/sentry-python/pull/4591/commits/744dc8acbe9a71e26953259802676672c11c569e
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
744dc8ahttps://github.com/getsentry/sentry-python/pull/4591/commits/744dc8acbe9a71e26953259802676672c11c569e
https://github.com/getsentry/sentry-python/tree/744dc8acbe9a71e26953259802676672c11c569e
fix(worker): Modify kill behaviour to mirror threaded workerhttps://github.com/getsentry/sentry-python/pull/4591/commits/fcc8040c31675cae02de137958da95634dedac4b
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
fcc8040https://github.com/getsentry/sentry-python/pull/4591/commits/fcc8040c31675cae02de137958da95634dedac4b
https://github.com/getsentry/sentry-python/tree/fcc8040c31675cae02de137958da95634dedac4b
ref(worker): add proper type annotation to worker task listhttps://github.com/getsentry/sentry-python/pull/4591/commits/9a43d9b7a07b4a5785d79c7d7c5d6a2ad3c5559d
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
9a43d9bhttps://github.com/getsentry/sentry-python/pull/4591/commits/9a43d9b7a07b4a5785d79c7d7c5d6a2ad3c5559d
https://github.com/getsentry/sentry-python/tree/9a43d9b7a07b4a5785d79c7d7c5d6a2ad3c5559d
ref(worker): Refactor implementation to incorporate feedbackhttps://github.com/getsentry/sentry-python/pull/4591/commits/b5eda0e78ed8599c126c7e19def0749cd2fe0da5
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
b5eda0ehttps://github.com/getsentry/sentry-python/pull/4591/commits/b5eda0e78ed8599c126c7e19def0749cd2fe0da5
https://github.com/getsentry/sentry-python/tree/b5eda0e78ed8599c126c7e19def0749cd2fe0da5
ref(worker): fix queue initializationhttps://github.com/getsentry/sentry-python/pull/4591/commits/9e380b89f860d09d44ba7e087a8a3809804b2745
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
9e380b8https://github.com/getsentry/sentry-python/pull/4591/commits/9e380b89f860d09d44ba7e087a8a3809804b2745
https://github.com/getsentry/sentry-python/tree/9e380b89f860d09d44ba7e087a8a3809804b2745
ref(worker): Add queue as optional to allow for initialisation in starthttps://github.com/getsentry/sentry-python/pull/4591/commits/ee446215262b17987d418d0b480ebab863a559cd
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
ee44621https://github.com/getsentry/sentry-python/pull/4591/commits/ee446215262b17987d418d0b480ebab863a559cd
https://github.com/getsentry/sentry-python/tree/ee446215262b17987d418d0b480ebab863a559cd
ref(worker): Change to sync flush method that launches taskhttps://github.com/getsentry/sentry-python/pull/4591/commits/d9f7383a7d83517393514bf82b450d1df57f78f9
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
d9f7383https://github.com/getsentry/sentry-python/pull/4591/commits/d9f7383a7d83517393514bf82b450d1df57f78f9
https://github.com/getsentry/sentry-python/tree/d9f7383a7d83517393514bf82b450d1df57f78f9
ref(worker): Readd coroutine check for worker callbackshttps://github.com/getsentry/sentry-python/pull/4591/commits/d2e647b6553558524f777e9d4d6806e565f09762
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
d2e647bhttps://github.com/getsentry/sentry-python/pull/4591/commits/d2e647b6553558524f777e9d4d6806e565f09762
https://github.com/getsentry/sentry-python/tree/d2e647b6553558524f777e9d4d6806e565f09762
ref(worker): Remove sync callbacks from worker processing for nowhttps://github.com/getsentry/sentry-python/pull/4591/commits/859a0e2914c4b8d9a820b7e648dd777300d64e3a
https://github.com/srothh
srothhhttps://github.com/getsentry/sentry-python/commits?author=srothh
859a0e2https://github.com/getsentry/sentry-python/pull/4591/commits/859a0e2914c4b8d9a820b7e648dd777300d64e3a
https://github.com/getsentry/sentry-python/tree/859a0e2914c4b8d9a820b7e648dd777300d64e3a
Merge remote-tracking branch 'origin/srothh/transport-class-hierarchy' into srothh/async-task-workerhttps://github.com/getsentry/sentry-python/pull/4591/commits/a0cdb4d12ba8f6eabdcb271bdd7af278369f2007
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/getsentry/sentry-python/commits?author=sl0thentr0py
a0cdb4dhttps://github.com/getsentry/sentry-python/pull/4591/commits/a0cdb4d12ba8f6eabdcb271bdd7af278369f2007
https://github.com/getsentry/sentry-python/tree/a0cdb4d12ba8f6eabdcb271bdd7af278369f2007
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.