René's URL Explorer Experiment


Title: Fix FailureDetails JSON serialization and cut v1.7.2 by andystaples · Pull Request #172 · microsoft/durabletask-python · GitHub

Open Graph Title: Fix FailureDetails JSON serialization and cut v1.7.2 by andystaples · Pull Request #172 · microsoft/durabletask-python

X Title: Fix FailureDetails JSON serialization and cut v1.7.2 by andystaples · Pull Request #172 · microsoft/durabletask-python

Description: Summary Fixes a bug where history_export fails for any orchestration that completes with an error, and cuts release v1.7.2. task.FailureDetails was a plain class (not a dataclass), so HistoryEvent.to_dict() (asdict + _to_serializable) left it as a raw object and json.dumps raised: TypeError: Object of type FailureDetails is not JSON serializable This broke durabletask.extensions.history_export for four event types that carry failure information: ExecutionCompletedEvent TaskFailedEvent SubOrchestrationInstanceFailedEvent EntityOperationFailedEvent Fix Converted FailureDetails to a @dataclass(frozen=True). This is a root-cause fix rather than a per-call-site workaround: Preserves the exact public API — same positional constructor and read-only message / error_type / stack_trace attributes. asdict now recurses into it automatically, so all four events serialize to { "message", "error_type", "stack_trace" }. Adds value equality/hashing as a bonus. FailureDetails was the only non-dataclass, non-primitive nested type in history events; every other nested type (OrchestrationInstance, ParentInstanceInfo, TraceContext) is already a dataclass, so this single change covers the general case. Release v1.7.2 Bumped durabletask and durabletask.azuremanaged to 1.7.2 (and updated azuremanaged dependency floors). Updated both changelogs. Tests Added test_failure_details_is_json_safe in test_serialization.py. Full core suite (733 passed) and history_export suite (78 passed) green; flake8 clean.

Open Graph Description: Summary Fixes a bug where history_export fails for any orchestration that completes with an error, and cuts release v1.7.2. task.FailureDetails was a plain class (not a dataclass), so HistoryEvent....

X Description: Summary Fixes a bug where history_export fails for any orchestration that completes with an error, and cuts release v1.7.2. task.FailureDetails was a plain class (not a dataclass), so HistoryEvent....

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

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:110f2bdf-3929-8241-70af-350d0b50b39a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB6C6:2AB414:EA1A:1296F:6AFE4F4B
html-safe-nonce6a73f2f2d0945a21534720616f1d1d1d74224a2a0bcd2dd3ea1a1c66cf677619
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkM2OjJBQjQxNDpFQTFBOjEyOTZGOjZBRkU0RjRCIiwidmlzaXRvcl9pZCI6Ijg4MzUyNDI3MzMyMzc4NDk5MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9a5a42b981cfee45b6930140192feb7c3c2537784408bfcdbac744c70982b63c
hovercard-subject-tagpull_request:4024236618
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/172/files
twitter:imagehttps://avatars.githubusercontent.com/u/77818326?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/77818326?s=400&v=4
og:image:altSummary Fixes a bug where history_export fails for any orchestration that completes with an error, and cuts release v1.7.2. task.FailureDetails was a plain class (not a dataclass), so HistoryEvent....
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None894d3c8b932306ed8425e8dcbe0c1089667e487c5fe7b8a05d17e7b685207429
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
release44570ad53e12be09be8000af683c29166c4007cb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/durabletask-python/pull/172/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-python%2Fpull%2F172%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%2F172%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/172/files
Reloadhttps://github.com/microsoft/durabletask-python/pull/172/files
Reloadhttps://github.com/microsoft/durabletask-python/pull/172/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
Bernd Verst (berndverst)https://github.com/berndverst
microsoft:mainhttps://github.com/microsoft/durabletask-python/tree/main
andystaples:andystaples/fix-failure-details-serializationhttps://github.com/andystaples/durabletask-python/tree/andystaples/fix-failure-details-serialization
Conversation 1 https://github.com/microsoft/durabletask-python/pull/172
Commits 1 https://github.com/microsoft/durabletask-python/pull/172/commits
Checks 17 https://github.com/microsoft/durabletask-python/pull/172/checks
Files changed https://github.com/microsoft/durabletask-python/pull/172/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/172/files
Fix FailureDetails JSON serialization and cut v1.7.2 https://github.com/microsoft/durabletask-python/pull/172/files#top
Show all changes 1 commit https://github.com/microsoft/durabletask-python/pull/172/files
8e3bb37 Fix FailureDetails JSON serialization and cut v1.7.2 andystaples Jul 9, 2026 https://github.com/microsoft/durabletask-python/pull/172/commits/8e3bb3758cfa4bc46c877e3f39decaf76130ce86
Clear filters https://github.com/microsoft/durabletask-python/pull/172/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/172/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/172/files
CHANGELOG.md https://github.com/microsoft/durabletask-python/pull/172/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
CHANGELOG.md https://github.com/microsoft/durabletask-python/pull/172/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
pyproject.toml https://github.com/microsoft/durabletask-python/pull/172/files#diff-20ef70c6cb17bd1bf15eac7bcbdca20e173798f36ad7532315b3b6a388ddb12e
task.py https://github.com/microsoft/durabletask-python/pull/172/files#diff-36492640add0941ee3934088b514e433cd929fa6120e74f93e37e5484bfe7981
pyproject.toml https://github.com/microsoft/durabletask-python/pull/172/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
test_serialization.py https://github.com/microsoft/durabletask-python/pull/172/files#diff-3b45d6f95de0c5a73dcbb9f1505c366b852b4625796a90466417abebf368a376
CHANGELOG.mdhttps://github.com/microsoft/durabletask-python/pull/172/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/andystaples/durabletask-python/blob/8e3bb3758cfa4bc46c877e3f39decaf76130ce86/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/172/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/172/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/microsoft/durabletask-python/pull/172/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
durabletask-azuremanaged/CHANGELOG.mdhttps://github.com/microsoft/durabletask-python/pull/172/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
View file https://github.com/andystaples/durabletask-python/blob/8e3bb3758cfa4bc46c877e3f39decaf76130ce86/durabletask-azuremanaged/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/172/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/172/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
https://github.com/microsoft/durabletask-python/pull/172/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
durabletask-azuremanaged/pyproject.tomlhttps://github.com/microsoft/durabletask-python/pull/172/files#diff-20ef70c6cb17bd1bf15eac7bcbdca20e173798f36ad7532315b3b6a388ddb12e
View file https://github.com/andystaples/durabletask-python/blob/8e3bb3758cfa4bc46c877e3f39decaf76130ce86/durabletask-azuremanaged/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/172/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/172/files#diff-20ef70c6cb17bd1bf15eac7bcbdca20e173798f36ad7532315b3b6a388ddb12e
https://github.com/microsoft/durabletask-python/pull/172/files#diff-20ef70c6cb17bd1bf15eac7bcbdca20e173798f36ad7532315b3b6a388ddb12e
https://github.com/microsoft/durabletask-python/pull/172/files#diff-20ef70c6cb17bd1bf15eac7bcbdca20e173798f36ad7532315b3b6a388ddb12e
durabletask/task.pyhttps://github.com/microsoft/durabletask-python/pull/172/files#diff-36492640add0941ee3934088b514e433cd929fa6120e74f93e37e5484bfe7981
View file https://github.com/andystaples/durabletask-python/blob/8e3bb3758cfa4bc46c877e3f39decaf76130ce86/durabletask/task.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/172/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/172/files#diff-36492640add0941ee3934088b514e433cd929fa6120e74f93e37e5484bfe7981
https://github.com/microsoft/durabletask-python/pull/172/files#diff-36492640add0941ee3934088b514e433cd929fa6120e74f93e37e5484bfe7981
https://github.com/microsoft/durabletask-python/pull/172/files#diff-36492640add0941ee3934088b514e433cd929fa6120e74f93e37e5484bfe7981
https://github.com/microsoft/durabletask-python/pull/172/files#diff-36492640add0941ee3934088b514e433cd929fa6120e74f93e37e5484bfe7981
pyproject.tomlhttps://github.com/microsoft/durabletask-python/pull/172/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/andystaples/durabletask-python/blob/8e3bb3758cfa4bc46c877e3f39decaf76130ce86/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/172/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/172/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/microsoft/durabletask-python/pull/172/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
tests/durabletask/extensions/history_export/test_serialization.pyhttps://github.com/microsoft/durabletask-python/pull/172/files#diff-3b45d6f95de0c5a73dcbb9f1505c366b852b4625796a90466417abebf368a376
View file https://github.com/andystaples/durabletask-python/blob/8e3bb3758cfa4bc46c877e3f39decaf76130ce86/tests/durabletask/extensions/history_export/test_serialization.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/172/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/172/files#diff-3b45d6f95de0c5a73dcbb9f1505c366b852b4625796a90466417abebf368a376
https://github.com/microsoft/durabletask-python/pull/172/files#diff-3b45d6f95de0c5a73dcbb9f1505c366b852b4625796a90466417abebf368a376
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/172/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.