Title: [Azure Functions] Rewind E2E intermittently remains Failed after accepted rewind · Issue #331 · microsoft/durabletask-python · GitHub
Open Graph Title: [Azure Functions] Rewind E2E intermittently remains Failed after accepted rewind · Issue #331 · microsoft/durabletask-python
X Title: [Azure Functions] Rewind E2E intermittently remains Failed after accepted rewind · Issue #331 · microsoft/durabletask-python
Description: Failure tests/azure-functions-durable/e2e/test_v1_client_e2e.py::test_rewind intermittently times out waiting for a rewound orchestration to complete. Observed on #326, commit 4b246630448f7b6ee3240a5935ca0d50ca4ad541: Failed strict-typin...
Open Graph Description: Failure tests/azure-functions-durable/e2e/test_v1_client_e2e.py::test_rewind intermittently times out waiting for a rewound orchestration to complete. Observed on #326, commit 4b246630448f7b6ee3240...
X Description: Failure tests/azure-functions-durable/e2e/test_v1_client_e2e.py::test_rewind intermittently times out waiting for a rewound orchestration to complete. Observed on #326, commit 4b246630448f7b6ee3240...
Opengraph URL: https://github.com/microsoft/durabletask-python/issues/331
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Azure Functions] Rewind E2E intermittently remains Failed after accepted rewind","articleBody":"## Failure\n\n`tests/azure-functions-durable/e2e/test_v1_client_e2e.py::test_rewind` intermittently times out waiting for a rewound orchestration to complete.\n\nObserved on #326, commit `4b246630448f7b6ee3240a5935ca0d50ca4ad541`:\n\n- [Failed strict-typing=1 job](https://github.com/microsoft/durabletask-python/actions/runs/41512108219/job/125506778462)\n- Ubuntu runner, Python 3.13.17; `nox -s functions_e2e`\n- Result: 1 failed, 83 passed, 6 skipped. The strict-typing=0 E2E job passed, including this test.\n- Host logs are attached to the run as `func-host-logs-strict-1`, particularly `v1_style/_func_host.log`.\n\nThe test starts `rewind_target`, observes `Failed`, posts to `/api/rewind/{instance_id}`, and receives HTTP 202. It then waits 60 seconds for `Completed`, but the instance remains `Failed` with the activity's deliberate first-attempt failure:\n\n```text\nTimeoutError: Orchestration 14d366939d544d27988e1e0a0197d700 did not reach 'Completed' within 60s\nruntimeStatus: Failed\noutput: durabletask.task.TaskFailedError: ... Activity task #1 failed: failing on first attempt (rewind to retry)\n```\n\n## Host evidence\n\nFor instance `14d366939d544d27988e1e0a0197d700`, the captured host log shows:\n\n- `19:43:23.936Z`: client requests rewind.\n- `19:43:23.945Z` and `.946Z`: rewind reads report one history event.\n- `19:43:23.950Z`: instance status is updated to `Pending`.\n- `19:43:23.955Z`: host reports the orchestration was rewound.\n- `19:43:23.966Z`: orchestration schedules `fail_once#1`.\n- `19:43:23.984Z`: `fail_once` raises its deliberate first-attempt error.\n- `19:43:24.014Z`: instance status is updated to `Failed` and stays there through polling.\n\nThe sample activity uses an in-process per-token attempt counter. These observations warrant investigating history/status visibility around the initial failure and rewind, together with activity counter lifetime. The exact race or underlying defect is not yet established; the log excerpt alone does not prove which component is responsible.\n\n## Scope\n\nThis differs from #330, which is an assertion failure caused by adjacent host log records in the logging E2E test. Here the assertion is an orchestration status timeout, not log formatting.\n\n`rewind_target` calls `fail_once` without a retry policy, so it does not exercise the `RetryableTask.compute_next_delay()` changes in #326. Core and Azure Managed CI passed across all Python versions on this commit.\n\n## Expected behavior\n\nOnce the deliberately failed activity is rewound, the next invocation should succeed and the orchestration should reach `Completed`. Investigate and make the test/runtime interaction reliable without concealing persistent failures with unconditional retries or longer arbitrary sleeps.","author":{"url":"https://github.com/andystaples","@type":"Person","name":"andystaples"},"datePublished":"2026-11-02T19:54:31Z","url":"https://github.com/microsoft/durabletask-python/issues/331"}
| 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:5098c3cf-85b2-3507-748d-18065bc6ff4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1CE:2B73A8:C93FE1:119A835:6AFE2C88 |
| html-safe-nonce | c6a7331b41a6e17360a572bf2fbc9b4ca69d4e705e9402183dfb3d673098b6f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUNFOjJCNzNBODpDOTNGRTE6MTE5QTgzNTo2QUZFMkM4OCIsInZpc2l0b3JfaWQiOiI4Mjk0NzcxNDQ4OTM3ODUyMDQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 042206ce27652c9bb91bc31fa8c034f8bdbb32b8cdb322b514cd79f3e3f50ce1 |
| hovercard-subject-tag | issue:6169875029 |
| 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/331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c7c7b6154ec850a130d3958663821b828e78954ade54c1be7a973b4fecc2edd/microsoft/durabletask-python/issues/331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c7c7b6154ec850a130d3958663821b828e78954ade54c1be7a973b4fecc2edd/microsoft/durabletask-python/issues/331 |
| og:image:alt | Failure tests/azure-functions-durable/e2e/test_v1_client_e2e.py::test_rewind intermittently times out waiting for a rewound orchestration to complete. Observed on #326, commit 4b246630448f7b6ee3240... |
| 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