Title: Support async/await orchestrators across the Python SDK packages · Issue #294 · microsoft/durabletask-python · GitHub
Open Graph Title: Support async/await orchestrators across the Python SDK packages · Issue #294 · microsoft/durabletask-python
X Title: Support async/await orchestrators across the Python SDK packages · Issue #294 · microsoft/durabletask-python
Description: Summary Support async def and await orchestrators across durabletask, durabletask.azuremanaged, and azure-functions-durable, including native two-argument and compatibility single-argument Functions orchestrators. Existing synchronous ge...
Open Graph Description: Summary Support async def and await orchestrators across durabletask, durabletask.azuremanaged, and azure-functions-durable, including native two-argument and compatibility single-argument Function...
X Description: Summary Support async def and await orchestrators across durabletask, durabletask.azuremanaged, and azure-functions-durable, including native two-argument and compatibility single-argument Function...
Opengraph URL: https://github.com/microsoft/durabletask-python/issues/294
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support async/await orchestrators across the Python SDK packages","articleBody":"## Summary\n\nSupport `async def` and `await` orchestrators across `durabletask`, `durabletask.azuremanaged`, and `azure-functions-durable`, including native two-argument and compatibility single-argument Functions orchestrators. Existing synchronous generator orchestrators remain supported.\n\nImplementation: #293. Both authoring styles use the shared history/replay engine rather than separate provider runtimes.\n\n## Authoring model\n\n```python\nfrom durabletask import task\n\n\nasync def sequence(ctx: task.OrchestrationContext, value: int) -> list[int]:\n first = await ctx.call_activity(\"increment\", input=value, return_type=int)\n return await task.when_all([\n ctx.call_activity(\"increment\", input=first, return_type=int),\n ctx.call_activity(\"increment\", input=value, return_type=int),\n ])\n```\n\nDurable operations remain the persistence boundary. Async helpers rerun during replay; a separate durable child instance uses `call_sub_orchestrator`. Deterministic asyncio composition and sleeps/timeouts are limited to the [supported contract](https://github.com/microsoft/durabletask-python/blob/andystaples-async-orchestrator-spike/docs/async-orchestrators.md). Nondeterministic I/O belongs in ordinary activities, not orchestrators.\n\n## Acceptance criteria\n\n- [ ] Native coroutine orchestrators work across all three packages and both Functions authoring styles.\n- [ ] Generator orchestrators remain supported, including mixed generator/coroutine durable parents and children.\n- [ ] Durable awaits preserve replay, result typing, retry, failure, payload, and entity-operation behavior.\n- [ ] Deterministic composition, durable clocks/timers, timeouts, local cancellation, and dispatch cleanup have a defined supported contract.\n- [ ] Documentation identifies unsupported APIs, framework-adapter responsibilities, and in-flight migration requirements without promising arbitrary async-library compatibility.\n\nSupport is limited to the documented standard-library asyncio subset; third-party async-library compatibility is outside this contract. Local/virtual activities and automatic recording of arbitrary awaits are outside this feature. `asyncio.wait` and `as_completed` are not supported deterministic composition APIs.\n\n## Community feedback\n\nPlease share use cases and asyncio-library interoperability requirements in the discussion.","author":{"url":"https://github.com/andystaples","@type":"Person","name":"andystaples"},"datePublished":"2026-10-15T17:41:43Z","url":"https://github.com/microsoft/durabletask-python/issues/294"}
| 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:d351ae23-47e5-8513-d232-b6ecf3d11ec4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1D6:16CE4E:96BD36:D4856A:6AFE1E89 |
| html-safe-nonce | 58c9129d007902093cea04f8f2c84106d01f5db718701e24b9907f3a4b89e140 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUQ2OjE2Q0U0RTo5NkJEMzY6RDQ4NTZBOjZBRkUxRTg5IiwidmlzaXRvcl9pZCI6Ijc3NDAxNzg5OTUwNjg0MTE1MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | beb48106ca4bd6536def2d61666c6fb3804c1e8c7944d3a603e8405b833eb400 |
| hovercard-subject-tag | issue:5871071475 |
| 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/294/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9bdb41a8aa4dae99a5cf2fc059d1b68fa40c0f7cda8429ed145f79c167bff7e4/microsoft/durabletask-python/issues/294 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9bdb41a8aa4dae99a5cf2fc059d1b68fa40c0f7cda8429ed145f79c167bff7e4/microsoft/durabletask-python/issues/294 |
| og:image:alt | Summary Support async def and await orchestrators across durabletask, durabletask.azuremanaged, and azure-functions-durable, including native two-argument and compatibility single-argument Function... |
| 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 | d0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9 |
| 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 | fef3993a71fa20f7be8e167132fbf9619bc66e12 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width