Title: Using retry_policy without max_retry_interval fails with no helpful error · Issue #96 · microsoft/durabletask-python · GitHub
Open Graph Title: Using retry_policy without max_retry_interval fails with no helpful error · Issue #96 · microsoft/durabletask-python
X Title: Using retry_policy without max_retry_interval fails with no helpful error · Issue #96 · microsoft/durabletask-python
Description: Calling context.call_activity with a retry policy that doesn't specify max_retry_interval prevents the retry behavior from working, causing the orchestration to fail after the first activity failure. Example: @bp.orchestration_trigger(co...
Open Graph Description: Calling context.call_activity with a retry policy that doesn't specify max_retry_interval prevents the retry behavior from working, causing the orchestration to fail after the first activity failur...
X Description: Calling context.call_activity with a retry policy that doesn't specify max_retry_interval prevents the retry behavior from working, causing the orchestration to fail after the first activity fa...
Opengraph URL: https://github.com/microsoft/durabletask-python/issues/96
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using retry_policy without max_retry_interval fails with no helpful error","articleBody":"Calling context.call_activity with a retry policy that doesn't specify max_retry_interval prevents the retry behavior from working, causing the orchestration to fail after the first activity failure. \nExample:\n```python\n\n@bp.orchestration_trigger(context_name=\"context\", orchestration=\"RetryActivityFunction\")\ndef retry_activity_function(context: OrchestrationContext, _):\n retry_policy = RetryPolicy(\n first_retry_interval=timedelta(milliseconds=5000),\n max_number_of_attempts=3,\n )\n # raise_exception will throw on the first invocation, then succeed on the second\n yield context.call_activity('raise_exception', input=context.instance_id, retry_policy=retry_policy)\n return \"Success\"\n```\n\nCause: \nWhen the _OrchestrationExecutor runs process_event on the taskFailed event, it calls compute_next_delay on the task, which returns None because self._retry_policy.max_retry_interval is None. This shunts to the default \"fail the orchestration\" behavior without logging a reason why. \n\nNot sure what the best solution is - should we have a default max_retry_interval, not enforce max_retry_interval if it is not specified, or continue to fail, but with a warning about providing max_retry_interval?","author":{"url":"https://github.com/andystaples","@type":"Person","name":"andystaples"},"datePublished":"2026-01-05T20:34:17Z","url":"https://github.com/microsoft/durabletask-python/issues/96"}
| 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:8e143be5-d547-000d-0f2a-65ab15bb8cf6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C5E:26B96B:4384F:58501:6AFE2CA3 |
| html-safe-nonce | c6aac85387aa4669043c807fbddfacb83d2c0f609214d3755f4c00a7c1122aea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzVFOjI2Qjk2Qjo0Mzg0Rjo1ODUwMTo2QUZFMkNBMyIsInZpc2l0b3JfaWQiOiI2NDUzMDM5NTY0ODkzMDcyNTQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f50ae63aed5986019c7c1b87bd321b4f7f42ac876b2bc1f10ef10e2e11094f77 |
| hovercard-subject-tag | issue:3782786799 |
| 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/96/issue_layout |
| twitter:image | https://opengraph.githubassets.com/acdaf12e4feac241742a5f623b983e5e020606e34612a329737cd23c8e32b644/microsoft/durabletask-python/issues/96 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/acdaf12e4feac241742a5f623b983e5e020606e34612a329737cd23c8e32b644/microsoft/durabletask-python/issues/96 |
| og:image:alt | Calling context.call_activity with a retry policy that doesn't specify max_retry_interval prevents the retry behavior from working, causing the orchestration to fail after the first activity failur... |
| 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