René's URL Explorer Experiment


Title: Complete permanent payload failures with entity-lock cleanup for .NET parity · Issue #297 · microsoft/durabletask-python · GitHub

Open Graph Title: Complete permanent payload failures with entity-lock cleanup for .NET parity · Issue #297 · microsoft/durabletask-python

X Title: Complete permanent payload failures with entity-lock cleanup for .NET parity · Issue #297 · microsoft/durabletask-python

Description: Please add permanent orchestration payload-failure handling that releases entity locks, for parity with the fixes proposed in durabletask-dotnet PR 816. Source inspection of current main (cb75760f250099d5b3b49e18ed03e10f8fe46d0d) shows a...

Open Graph Description: Please add permanent orchestration payload-failure handling that releases entity locks, for parity with the fixes proposed in durabletask-dotnet PR 816. Source inspection of current main (cb75760f2...

X Description: Please add permanent orchestration payload-failure handling that releases entity locks, for parity with the fixes proposed in durabletask-dotnet PR 816. Source inspection of current main (cb75760f2...

Opengraph URL: https://github.com/microsoft/durabletask-python/issues/297

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Complete permanent payload failures with entity-lock cleanup for .NET parity","articleBody":"Please add permanent orchestration payload-failure handling that releases entity locks, for parity with the fixes proposed in [durabletask-dotnet PR 816](https://github.com/microsoft/durabletask-dotnet/pull/816). Source inspection of current `main` (`cb75760f250099d5b3b49e18ed03e10f8fe46d0d`) shows a related liveness/cleanup gap, not an identical action-clearing implementation.\r\n\r\n## Current behavior\r\n\r\n- [`TaskHubGrpcWorker._execute_orchestrator`](https://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/worker.py#L1278-L1293) externalizes the completed response before calling `CompleteOrchestratorTask`. If externalization raises, its catch block only logs the exception. That path sends neither a failed completion nor an explicit abandonment.\r\n- The configured maximum is a deterministic example: [`_try_externalize_field`](https://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/payload/helpers.py#L148-L177) raises `ValueError` when a raw payload exceeds `max_stored_payload_bytes`. Re-delivering the same work item cannot make that input fit the unchanged cap.\r\n- Entity cleanup exists in [`set_complete` / `set_failed`](https://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/worker.py#L1585-L1657): these release held locks and deliberately retain pending release actions. However, the later payload-error path does not use that cleanup. Even releases already included in a terminal response are not delivered if the response's result/custom status fails externalization.\r\n- The release generator, [`emit_lock_release_messages`](https://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/internal/orchestration_entity_context.py#L64-L76), contains the owner, critical-section ID, and target needed for each unlock.\r\n\r\nConsequently an orchestration can remain uncompleted and repeatedly encounter the same permanent payload error while previously acquired entity locks continue blocking other callers. Unlike the .NET bug, Python is not currently sending a terminal Failed response that has dropped its releases; it is not sending the completion at all.\r\n\r\n## Regression recipe\r\n\r\nUse the native worker with a fake payload store, a small threshold and maximum, and history showing an orchestration has acquired two entity locks. Cover both:\r\n\r\n1. A terminal orchestration response that already contains the two releases but has a result exceeding the store maximum.\r\n2. A pending entity call inside the critical section whose input exceeds that maximum; no releases have yet been emitted.\r\n\r\nRecord calls on the sidecar stub. The current `_execute_orchestrator` path logs the size exception without submitting either response. Expected parity behavior is a small non-retriable Failed completion containing the releases for both held locks, before the terminal action. A second caller should then be able to use the entities.\r\n\r\nThis report is based on the pinned source paths above; the recipe is requested regression coverage, not a claimed executed cloud test.\r\n\r\n## Acceptance Criteria\r\n\r\n- [ ] Deterministic permanent orchestration externalization failures, including the configured payload cap, do not leave the same work item in a log-only redelivery loop.\r\n- [ ] The worker submits a small non-retriable Failed completion, retaining already-emitted releases and generating any outstanding releases from acquired-lock state before sending.\r\n- [ ] Tests cover both terminal-result/custom-status failure and a pending entity-call failure with previously acquired locks; the release owner, target and critical-section IDs remain correct.\r\n- [ ] A backend-level regression demonstrates that another caller progresses after the failure releases its locks.\r\n- [ ] Transient storage failures and cancellation remain retryable/cancellable rather than being misclassified as permanent failures.\r\n- [ ] Preserve the existing token-idempotency behavior in both synchronous and asynchronous payload helpers.\r\n\r\n## Related\r\n\r\n- [.NET parity reference: PR 816](https://github.com/microsoft/durabletask-dotnet/pull/816), currently proposed rather than a released fix.\r\n- Python already skips recognized tokens before applying byte-size checks in the [sync helper](https://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/payload/helpers.py#L148-L177) and [async helper](https://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/payload/helpers.py#L277-L304). This issue does not request the .NET known-token fix where Python already has it.\r\n- [Issue 269](https://github.com/microsoft/durabletask-python/issues/269) concerns Azure Functions completion-size visibility/configuration. This report is specifically about native worker payload-store failure and entity-lock cleanup, not Functions configuration or Unicode serialization.\r\n","author":{"url":"https://github.com/YunchuWang","@type":"Person","name":"YunchuWang"},"datePublished":"2026-10-19T19:25:05Z","url":"https://github.com/microsoft/durabletask-python/issues/297"}

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:d32fe216-a882-36c2-38ed-d1ab0d49690e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idACC8:2AB11:CAAE14:11AB7D4:6AFE2CF1
html-safe-nonce5df7deee06f25e6ffcb072bf515935395d675ef66e8fec4955fd7ab2bd6777c3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0M4OjJBQjExOkNBQUUxNDoxMUFCN0Q0OjZBRkUyQ0YxIiwidmlzaXRvcl9pZCI6IjQwNTA3MDg4OTEzMDkwNTkzMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0950ad1f23072300731ee655355d3d5037cb0e93a890a99caf053187e928d4e2
hovercard-subject-tagissue:5930129201
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/microsoft/durabletask-python/297/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b0c6980621ff44444d310466f9ff8e6f21eb0f389d2716d636d5d65a5111e2a3/microsoft/durabletask-python/issues/297
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b0c6980621ff44444d310466f9ff8e6f21eb0f389d2716d636d5d65a5111e2a3/microsoft/durabletask-python/issues/297
og:image:altPlease add permanent orchestration payload-failure handling that releases entity locks, for parity with the fixes proposed in durabletask-dotnet PR 816. Source inspection of current main (cb75760f2...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYunchuWang
hostnamegithub.com
expected-hostnamegithub.com
Nonee973f9ec3625f3faad8cac5c2d11a214b7ffe45f3cc563b828459b290ecaeed3
turbo-cache-controlno-preview
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
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/durabletask-python/issues/297#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-python%2Fissues%2F297
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%2Fissues%2F297
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=microsoft%2Fdurabletask-python
Reloadhttps://github.com/microsoft/durabletask-python/issues/297
Reloadhttps://github.com/microsoft/durabletask-python/issues/297
Reloadhttps://github.com/microsoft/durabletask-python/issues/297
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
https://github.com/microsoft/durabletask-python
New issuehttps://github.com/login?return_to=https://github.com/microsoft/durabletask-python/issues/297
New issuehttps://github.com/login?return_to=https://github.com/microsoft/durabletask-python/issues/297
#306https://github.com/microsoft/durabletask-python/pull/306
Complete permanent payload failures with entity-lock cleanup for .NET parityhttps://github.com/microsoft/durabletask-python/issues/297#top
#306https://github.com/microsoft/durabletask-python/pull/306
bugSomething isn't workinghttps://github.com/microsoft/durabletask-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/YunchuWang
wangbill (YunchuWang)https://github.com/YunchuWang
on Oct 19, 2026https://github.com/microsoft/durabletask-python/issues/297#issue-5930129201
durabletask-dotnet PR 816https://github.com/microsoft/durabletask-dotnet/pull/816
TaskHubGrpcWorker._execute_orchestratorhttps://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/worker.py#L1278-L1293
_try_externalize_fieldhttps://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/payload/helpers.py#L148-L177
set_complete / set_failedhttps://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/worker.py#L1585-L1657
emit_lock_release_messageshttps://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/internal/orchestration_entity_context.py#L64-L76
.NET parity reference: PR 816https://github.com/microsoft/durabletask-dotnet/pull/816
sync helperhttps://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/payload/helpers.py#L148-L177
async helperhttps://github.com/microsoft/durabletask-python/blob/cb75760f250099d5b3b49e18ed03e10f8fe46d0d/durabletask/payload/helpers.py#L277-L304
Issue 269https://github.com/microsoft/durabletask-python/issues/269
wangbill (YunchuWang)https://github.com/YunchuWang
bugSomething isn't workinghttps://github.com/microsoft/durabletask-python/issues?q=state%3Aopen%20label%3A%22bug%22
on Oct 19, 2026https://github.com/microsoft/durabletask-python/issues/297#event-33677842184
andystapleshttps://github.com/andystaples
on Oct 21, 2026https://github.com/microsoft/durabletask-python/issues/297#event-33868041759
fix: complete permanent payload failures and release entity lockshttps://github.com/microsoft/durabletask-python/commit/e4cf01e947bb9fb9de1c68b9599ea55b300a2379
https://docs.github.com/articles/closing-issues-via-commit-messages
e4cf01ehttps://github.com/microsoft/durabletask-python/commit/e4cf01e947bb9fb9de1c68b9599ea55b300a2379
Bernd Verst (berndverst)https://github.com/berndverst
completedhttps://github.com/microsoft/durabletask-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#306https://github.com/microsoft/durabletask-python/pull/306
on Oct 22, 2026https://github.com/microsoft/durabletask-python/issues/297#event-33901522458
Bernd Verst (berndverst)https://github.com/berndverst
on Oct 22, 2026https://github.com/microsoft/durabletask-python/issues/297#event-33901524553
Complete permanent payload failures with entity-lock cleanup (#306)https://github.com/microsoft/durabletask-python/commit/040c9e50d7034fb4f469a8b6c3876e826ed971c8
#306https://github.com/microsoft/durabletask-python/pull/306
https://docs.github.com/articles/closing-issues-via-commit-messages
040c9e5https://github.com/microsoft/durabletask-python/commit/040c9e50d7034fb4f469a8b6c3876e826ed971c8
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/durabletask-python/issues/297
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/durabletask-python/issues/297
bugSomething isn't workinghttps://github.com/microsoft/durabletask-python/issues?q=state%3Aopen%20label%3A%22bug%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.