Title: [Azure Functions] Add DTS coverage for isolation of SDK-managed missing-payload failures · Issue #312 · microsoft/durabletask-python · GitHub
Open Graph Title: [Azure Functions] Add DTS coverage for isolation of SDK-managed missing-payload failures · Issue #312 · microsoft/durabletask-python
X Title: [Azure Functions] Add DTS coverage for isolation of SDK-managed missing-payload failures · Issue #312 · microsoft/durabletask-python
Description: Summary Add Functions-host/DTS integration coverage showing that missing blobs in Python SDK-managed payload storage fail only the affected invocation/work, without disrupting unrelated in-flight work on the same host. This is a coverage...
Open Graph Description: Summary Add Functions-host/DTS integration coverage showing that missing blobs in Python SDK-managed payload storage fail only the affected invocation/work, without disrupting unrelated in-flight w...
X Description: Summary Add Functions-host/DTS integration coverage showing that missing blobs in Python SDK-managed payload storage fail only the affected invocation/work, without disrupting unrelated in-flight w...
Opengraph URL: https://github.com/microsoft/durabletask-python/issues/312
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Azure Functions] Add DTS coverage for isolation of SDK-managed missing-payload failures","articleBody":"## Summary\n\nAdd Functions-host/DTS integration coverage showing that missing blobs in Python SDK-managed payload storage fail only the affected invocation/work, without disrupting unrelated in-flight work on the same host.\n\nThis is a coverage and investigation issue, not a claim that SDK-only externalization currently reproduces the host-wide failure reported in [#269, follow-up comment, ask 3](https://github.com/microsoft/durabletask-python/issues/269#issuecomment-6265715312).\n\n## Configuration boundary\n\nExercise the supported Python SDK-managed path:\n\n- Configure the root app with `DFApp.configure_large_payloads(payload_store=...)`.\n- Explicitly disable host/provider-side `payloadStorageEnabled`, so the test does not accidentally exercise host-side hydration instead.\n- Use a Functions host backed by DTS, with multiple unrelated instances and concurrent activity deliveries on that host.\n\nThe reporter currently uses host-side externalization. That path can hydrate payloads inside the AzureManaged provider's shared receive stream and has a distinct suspected blast-radius defect. It must not be treated as proof of the same defect in the Python SDK path.\n\n## Current evidence and expected behavior\n\nIn the Python Functions integration, orchestration/entity request hydration occurs within the individual Function invocation, before user execution. Activity hydration occurs inside the activity wrapper. `DurableFunctionsWorker` does not own a DTS work-item stream.\n\nOrdinary invocation exceptions are already mapped by the extension to local failures:\n\n- An orchestration invocation error produces a failed orchestration result.\n- An activity invocation error produces a failed activity/task result, subject to the application's activity retry policy and observable by its orchestrator.\n- An entity invocation error follows the existing failed-operation behavior; it must not be assumed to terminate the entity or unrelated callers.\n\nExisting Python unit tests check error propagation, including missing activity references and entity-envelope hydration failures. They do not establish multi-instance DTS host isolation end-to-end. A Python storage exception also occurs before orchestrator user code when request hydration fails, so this issue must not promise that the orchestrator can catch its own hydration failure and run compensation.\n\nSource references at the reviewed commits:\n\n- [Python orchestration/entity invocation-bound hydration](https://github.com/microsoft/durabletask-python/blob/0cf1ad410ef562719719a7974d64379163d95a74/azure-functions-durable/azure/durable_functions/worker.py#L95-L176)\n- [Python activity invocation-bound payload handling](https://github.com/microsoft/durabletask-python/blob/0cf1ad410ef562719719a7974d64379163d95a74/azure-functions-durable/azure/durable_functions/internal/compat/activity.py#L180-L225)\n- [Extension ordinary orchestration invocation failure handling](https://github.com/Azure/azure-functions-durable-extension/blob/e6cfa41b8b867b10eb885ea394fead0ac0e54dee/src/WebJobs.Extensions.DurableTask/OutOfProcMiddleware.cs#L276-L325)\n- [Extension ordinary activity invocation failure handling](https://github.com/Azure/azure-functions-durable-extension/blob/e6cfa41b8b867b10eb885ea394fead0ac0e54dee/src/WebJobs.Extensions.DurableTask/OutOfProcMiddleware.cs#L655-L695)\n\n## Proposed regression scenarios\n\nExternalize data, then remove a specifically referenced blob while retaining unrelated valid payloads and keeping unrelated instances active. Cover missing orchestration input or replay-required history, missing activity input, and missing entity-operation payloads where supported. Arrange timing so the blob is actually needed by the target invocation; historical scheduled activity inputs that replay intentionally skips are not a valid proxy.\n\nFor each scenario, observe the affected work's outcome and concurrently verify that healthy activity deliveries and orchestrations continue to completion on the same host.\n\n## Acceptance criteria\n\n- Exercise real missing-reference behavior through the Functions host and DTS transport, not only an exception from a directly invoked Python wrapper.\n- Explicitly record that host-side payload storage is disabled, along with the Python package, extension, and AzureManaged provider versions used.\n- Verify the appropriate affected orchestration/task/entity-operation failure is visible, and that a permanent missing blob does not create an unbounded provider-redelivery loop.\n- Verify unrelated in-flight work remains healthy; capture correlated host diagnostics and delivery/connection behavior needed to investigate any collateral failure.\n- Distinguish ordinary missing-blob exceptions from storage timeouts, worker exits, host shutdown, and other platform-abort paths. Preserve existing documented retry/cancellation behavior rather than silently introducing a new policy.\n- If coverage exposes a Python integration bug, fix it minimally here. If it exposes extension/provider/runtime behavior, record a reproducible upstream issue with logs and the exact configuration rather than assuming the host-side interceptor root cause applies.\n- State which environments were exercised. Azurite-only or emulator coverage must not be represented as hosted DTS validation.\n- Document behavior changes if any are needed; test-only coverage does not require a user-facing changelog entry.\n\n## Related\n\n- [#269](https://github.com/microsoft/durabletask-python/issues/269): customer report; its follow-up ask 3 currently describes host-side offloading.\n- [#270](https://github.com/microsoft/durabletask-python/pull/270): Python Functions SDK-managed payload configuration.\n- [#297](https://github.com/microsoft/durabletask-python/issues/297): closed native-worker completion-side payload-size/entity-lock cleanup work; not proof of SDK-only Functions missing-download isolation.\n- The original host/provider-side shared-stream hydration failure is tracked separately in [Azure/azure-functions-durable-extension#3582](https://github.com/Azure/azure-functions-durable-extension/issues/3582), not as the implementation target of this issue.","author":{"url":"https://github.com/andystaples","@type":"Person","name":"andystaples"},"datePublished":"2026-10-22T17:06:12Z","url":"https://github.com/microsoft/durabletask-python/issues/312"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ca1f55da-651a-de46-4485-d9611e8cee5c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA36:1FBC18:C82F36:1192070:6AFE2CDF |
| html-safe-nonce | 91c43bc9c0a0a58e13dbe5c111b6f2f9f874d618fcb99d126b7256a6aa445d08 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTM2OjFGQkMxODpDODJGMzY6MTE5MjA3MDo2QUZFMkNERiIsInZpc2l0b3JfaWQiOiI2NDc4NjkzMzI3MjQyNjY5Mjc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4c29a3a6d7b685d739927fdbdcc1aae2d046d7f6c7222c760d20788f03f7869a |
| hovercard-subject-tag | issue:5983947514 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/durabletask-python/312/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bdbfba7b5f95165e8a1c8cba05d23faa9a056026149c7d2f8d062eb0016c8277/microsoft/durabletask-python/issues/312 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bdbfba7b5f95165e8a1c8cba05d23faa9a056026149c7d2f8d062eb0016c8277/microsoft/durabletask-python/issues/312 |
| og:image:alt | Summary Add Functions-host/DTS integration coverage showing that missing blobs in Python SDK-managed payload storage fail only the affected invocation/work, without disrupting unrelated in-flight w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andystaples |
| hostname | github.com |
| expected-hostname | github.com |
| None | e973f9ec3625f3faad8cac5c2d11a214b7ffe45f3cc563b828459b290ecaeed3 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/durabletask-python git https://github.com/microsoft/durabletask-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 627664515 |
| octolytics-dimension-repository_nwo | microsoft/durabletask-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627664515 |
| octolytics-dimension-repository_network_root_nwo | microsoft/durabletask-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1f92c367595b9190e0be293896078033886b1913 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width