René's URL Explorer Experiment


Title: fix(worker): preserve dispatch outcomes when generator teardown raises CancelledError by tamirdresher · Pull Request #303 · microsoft/durabletask-python · GitHub

Open Graph Title: fix(worker): preserve dispatch outcomes when generator teardown raises CancelledError by tamirdresher · Pull Request #303 · microsoft/durabletask-python

X Title: fix(worker): preserve dispatch outcomes when generator teardown raises CancelledError by tamirdresher · Pull Request #303 · microsoft/durabletask-python

Description: Problem asyncio.CancelledError inherits from BaseException, so it escapes the existing except Exception around generator teardown. It can replace an already-built dispatch response or version-rejection abandonment. The worker then sends neither completion nor abandonment. Fix Catch asyncio.CancelledError alongside ordinary cleanup exceptions and keep the existing warning. SystemExit and KeyboardInterrupt still propagate. Regression tests use a real cancelled asyncio task whose cancellation escapes generator.close(). They cover both executor results and the worker's completion and abandonment calls, plus process-control exception propagation. Document the per-dispatch finalizer contract with one local-resource versus durable-cleanup example. Clarify and link the three Unreleased changelog entries, including the cancellation fix. No package versions or dependency minimums change. Validation Check Result Core unit scope, excluding live integrations 1,182 passed Generator-cleanup regressions 25 passed Pre-fix cancellation/control regression check 4 failed, 2 passed as expected Core source and test flake8 Passed Strict Pyright: full config and changed Python files 0 errors, 0 warnings Touched Markdown No new issues; 22 existing changelog MD013 violations Live backend integrations and a cross-version matrix were not rerun for this follow-up. Worker delivery tests use a mocked service stub. Closes #301 Suggested reviewers: andystaples Bernd Verst (@berndverst)

Open Graph Description: Problem asyncio.CancelledError inherits from BaseException, so it escapes the existing except Exception around generator teardown. It can replace an already-built dispatch response or version-rejec...

X Description: Problem asyncio.CancelledError inherits from BaseException, so it escapes the existing except Exception around generator teardown. It can replace an already-built dispatch response or version-rejec...

Opengraph URL: https://github.com/microsoft/durabletask-python/pull/303

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/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6291c0ad-e63b-770e-34ab-508fb7bddf92
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8CA8:1381B5:7C804:A393C:6AFE2D85
html-safe-nonce12d02dc3eafd33f3a2dee4912a1174e0509009ba44461b0cf4d5105a89f02fb3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0E4OjEzODFCNTo3QzgwNDpBMzkzQzo2QUZFMkQ4NSIsInZpc2l0b3JfaWQiOiI1ODY4MDMwOTIxNDMyNTA5ODI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac89764b4435ad781001cb28a2e83a4b01337e43debfaf57b7fd9bde371cd1cc0a
hovercard-subject-tagpull_request:4951124760
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/durabletask-python/pull/303/files
twitter:imagehttps://avatars.githubusercontent.com/u/342800?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/342800?s=400&v=4
og:image:altProblem asyncio.CancelledError inherits from BaseException, so it escapes the existing except Exception around generator teardown. It can replace an already-built dispatch response or version-rejec...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee973f9ec3625f3faad8cac5c2d11a214b7ffe45f3cc563b828459b290ecaeed3
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/microsoft/durabletask-python git https://github.com/microsoft/durabletask-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id627664515
octolytics-dimension-repository_nwomicrosoft/durabletask-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627664515
octolytics-dimension-repository_network_root_nwomicrosoft/durabletask-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1f92c367595b9190e0be293896078033886b1913
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/durabletask-python/pull/303/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-python%2Fpull%2F303%2Ffiles
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%2Fmicrosoft%2Fdurabletask-python%2Fpull%2F303%2Ffiles
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%2Ffiles&source=header-repo&source_repo=microsoft%2Fdurabletask-python
Reloadhttps://github.com/microsoft/durabletask-python/pull/303/files
Reloadhttps://github.com/microsoft/durabletask-python/pull/303/files
Reloadhttps://github.com/microsoft/durabletask-python/pull/303/files
microsofthttps://github.com/microsoft
durabletask-pythonhttps://github.com/microsoft/durabletask-python
Codehttps://github.com/microsoft/durabletask-python
Issues15 (15)https://github.com/microsoft/durabletask-python/issues
Pull requests12 (12)https://github.com/microsoft/durabletask-python/pulls
Actionshttps://github.com/microsoft/durabletask-python/actions
Projectshttps://github.com/microsoft/durabletask-python/projects
Security and qualityhttps://github.com/microsoft/durabletask-python/security
Insightshttps://github.com/microsoft/durabletask-python/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fmicrosoft%2Fdurabletask-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmicrosoft%2Fdurabletask-python%2Fissues%2Fnew%2Fchoose
Tamir Dresher (tamirdresher)https://github.com/tamirdresher
mainhttps://github.com/microsoft/durabletask-python/tree/main
tamirdresher-microsoft-teardown-cancellationhttps://github.com/microsoft/durabletask-python/tree/tamirdresher-microsoft-teardown-cancellation
Conversation 1 https://github.com/microsoft/durabletask-python/pull/303
Commits 1 https://github.com/microsoft/durabletask-python/pull/303/commits
Checks 27 https://github.com/microsoft/durabletask-python/pull/303/checks
Files changed https://github.com/microsoft/durabletask-python/pull/303/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/303/files
fix(worker): preserve dispatch outcomes when generator teardown raises CancelledError https://github.com/microsoft/durabletask-python/pull/303/files#top
Show all changes 1 commit https://github.com/microsoft/durabletask-python/pull/303/files
92cb412 fix(worker): preserve dispatch outcomes when generator teardown raise… tamirdresher Oct 20, 2026 https://github.com/microsoft/durabletask-python/pull/303/commits/92cb4123277d0d5a329e2436ec5d156f4359a57b
Clear filters https://github.com/microsoft/durabletask-python/pull/303/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/303/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/303/files
CHANGELOG.md https://github.com/microsoft/durabletask-python/pull/303/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
CHANGELOG.md https://github.com/microsoft/durabletask-python/pull/303/files#diff-5238e244f2c6b5bd4ede65c19a2cd928c40ff1a5c28bf1979651e8fe1db1a6d2
supported-patterns.md https://github.com/microsoft/durabletask-python/pull/303/files#diff-ad1c71a2a02957a84278c89004cad2ce24d6a0f74b97413b72774f4eb20f266f
CHANGELOG.md https://github.com/microsoft/durabletask-python/pull/303/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
worker.py https://github.com/microsoft/durabletask-python/pull/303/files#diff-821cca3b6d2d4c27b83bc2ea2c1dfbce058c46419967498ae26dc12693418899
test_orchestration_generator_cleanup.py https://github.com/microsoft/durabletask-python/pull/303/files#diff-48ceae17758794c0f6c90139050b158a8e02d04d9fa521b5fbe379d6d701f355
CHANGELOG.mdhttps://github.com/microsoft/durabletask-python/pull/303/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/microsoft/durabletask-python/blob/92cb4123277d0d5a329e2436ec5d156f4359a57b/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/303/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/303/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/microsoft/durabletask-python/pull/303/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
azure-functions-durable/CHANGELOG.mdhttps://github.com/microsoft/durabletask-python/pull/303/files#diff-5238e244f2c6b5bd4ede65c19a2cd928c40ff1a5c28bf1979651e8fe1db1a6d2
View file https://github.com/microsoft/durabletask-python/blob/92cb4123277d0d5a329e2436ec5d156f4359a57b/azure-functions-durable/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/303/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/303/files#diff-5238e244f2c6b5bd4ede65c19a2cd928c40ff1a5c28bf1979651e8fe1db1a6d2
https://github.com/microsoft/durabletask-python/pull/303/files#diff-5238e244f2c6b5bd4ede65c19a2cd928c40ff1a5c28bf1979651e8fe1db1a6d2
docs/supported-patterns.mdhttps://github.com/microsoft/durabletask-python/pull/303/files#diff-ad1c71a2a02957a84278c89004cad2ce24d6a0f74b97413b72774f4eb20f266f
View file https://github.com/microsoft/durabletask-python/blob/92cb4123277d0d5a329e2436ec5d156f4359a57b/docs/supported-patterns.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/303/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/303/files#diff-ad1c71a2a02957a84278c89004cad2ce24d6a0f74b97413b72774f4eb20f266f
https://github.com/microsoft/durabletask-python/pull/303/files#diff-ad1c71a2a02957a84278c89004cad2ce24d6a0f74b97413b72774f4eb20f266f
durabletask-azuremanaged/CHANGELOG.mdhttps://github.com/microsoft/durabletask-python/pull/303/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
View file https://github.com/microsoft/durabletask-python/blob/92cb4123277d0d5a329e2436ec5d156f4359a57b/durabletask-azuremanaged/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/303/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/303/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
https://github.com/microsoft/durabletask-python/pull/303/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
durabletask/worker.pyhttps://github.com/microsoft/durabletask-python/pull/303/files#diff-821cca3b6d2d4c27b83bc2ea2c1dfbce058c46419967498ae26dc12693418899
View file https://github.com/microsoft/durabletask-python/blob/92cb4123277d0d5a329e2436ec5d156f4359a57b/durabletask/worker.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/303/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/303/files#diff-821cca3b6d2d4c27b83bc2ea2c1dfbce058c46419967498ae26dc12693418899
https://github.com/microsoft/durabletask-python/pull/303/files#diff-821cca3b6d2d4c27b83bc2ea2c1dfbce058c46419967498ae26dc12693418899
tests/durabletask/test_orchestration_generator_cleanup.pyhttps://github.com/microsoft/durabletask-python/pull/303/files#diff-48ceae17758794c0f6c90139050b158a8e02d04d9fa521b5fbe379d6d701f355
View file https://github.com/microsoft/durabletask-python/blob/92cb4123277d0d5a329e2436ec5d156f4359a57b/tests/durabletask/test_orchestration_generator_cleanup.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/303/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/303/files#diff-48ceae17758794c0f6c90139050b158a8e02d04d9fa521b5fbe379d6d701f355
https://github.com/microsoft/durabletask-python/pull/303/files#diff-48ceae17758794c0f6c90139050b158a8e02d04d9fa521b5fbe379d6d701f355
https://github.com/microsoft/durabletask-python/pull/303/files#diff-48ceae17758794c0f6c90139050b158a8e02d04d9fa521b5fbe379d6d701f355
https://github.com/microsoft/durabletask-python/pull/303/files#diff-48ceae17758794c0f6c90139050b158a8e02d04d9fa521b5fbe379d6d701f355
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/303/files
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.