Title: Performance [P3]: Lazily load sandbox runtime API exports · Issue #197 · microsoft/durabletask-python · GitHub
Open Graph Title: Performance [P3]: Lazily load sandbox runtime API exports · Issue #197 · microsoft/durabletask-python
X Title: Performance [P3]: Lazily load sandbox runtime API exports · Issue #197 · microsoft/durabletask-python
Description: A Durable Task Python SDK compatible with the Durable Task Scheduler - Performance [P3]: Lazily load sandbox runtime API exports · Issue #197 · microsoft/durabletask-python
Open Graph Description: A Durable Task Python SDK compatible with the Durable Task Scheduler - Performance [P3]: Lazily load sandbox runtime API exports · Issue #197 · microsoft/durabletask-python
X Description: A Durable Task Python SDK compatible with the Durable Task Scheduler - Performance [P3]: Lazily load sandbox runtime API exports · Issue #197 · microsoft/durabletask-python
Opengraph URL: https://github.com/microsoft/durabletask-python
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Performance [P3]: Lazily load sandbox runtime API exports","articleBody":"### What is the issue?\n\nImporting the sandbox preview package eagerly imports both its client and worker runtime APIs.\n\n### What is the impact?\n\nCallers that only declare profiles or use a subset of the sandbox API load the worker graph, Azure Identity, and gRPC-related dependencies during process startup. This adds avoidable cold-start work for sandbox control-plane and configuration workloads.\n\n### Details about the issue including code reference\n\nRelevant code:\n\nhttps://github.com/microsoft/durabletask-python/blob/55d8e0b413eb5dd75afa64f30c54fe300bf4ea21/durabletask-azuremanaged/durabletask/azuremanaged/preview/sandboxes/__init__.py#L18-L23\n\nhttps://github.com/microsoft/durabletask-python/blob/55d8e0b413eb5dd75afa64f30c54fe300bf4ea21/durabletask-azuremanaged/durabletask/azuremanaged/preview/sandboxes/worker.py#L1-L27\n\nThe package initializer imports SandboxActivitiesClient and SandboxWorker. Importing SandboxWorker loads the sandbox runtime and ManagedIdentityCredential even when that runtime is not used.\n\n### A potential or proposed solution\n\nUse lazy package exports through module __getattr__ and TYPE_CHECKING imports, or split profile-definition APIs into a lightweight module. Preserve the documented public names and import behavior.","author":{"url":"https://github.com/berndverst","@type":"Person","name":"berndverst"},"datePublished":"2026-07-24T21:20:55Z","url":"https://github.com/microsoft/durabletask-python/issues/197"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:5e553c1f-6bf7-45d7-59c9-c140f0e76748 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE94:2CB2CB:5F059:7A0EF:6AFE413E |
| html-safe-nonce | 57a08cb9cf096223b44f15179ce55b1d5153bef9f00cc65761f414ee67d95d4c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTk0OjJDQjJDQjo1RjA1OTo3QTBFRjo2QUZFNDEzRSIsInZpc2l0b3JfaWQiOiI5ODExMzM3NDA5NTg2OTU3NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 67b537ffd864e2b32ee0117bb830e137137bb0f23c5f47b4fedd030e9522609d |
| hovercard-subject-tag | repository:627664515 |
| 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/microsoft/durabletask-python/issues/197 |
| twitter:image | https://opengraph.githubassets.com/2e768296e7770441c571ce066e9125447bf38ca3f8943290a044985176d2cbfd/microsoft/durabletask-python |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e768296e7770441c571ce066e9125447bf38ca3f8943290a044985176d2cbfd/microsoft/durabletask-python |
| og:image:alt | A Durable Task Python SDK compatible with the Durable Task Scheduler - Performance [P3]: Lazily load sandbox runtime API exports · Issue #197 · microsoft/durabletask-python |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1a5901e2377b0af2a0b303f9528678f1475d04b9219dca1e993344196eaa07c |
| turbo-cache-control | no-cache |
| 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 | c4447fdce9ed0f33af959d2b6680d0bc18212a6a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width