Title: Preserve global arrival order of external events carried across continue-as-new · Issue #277 · microsoft/durabletask-python · GitHub
Open Graph Title: Preserve global arrival order of external events carried across continue-as-new · Issue #277 · microsoft/durabletask-python
X Title: Preserve global arrival order of external events carried across continue-as-new · Issue #277 · microsoft/durabletask-python
Description: Bug When continue_as_new(..., save_events=True) carries buffered external events to the next execution, it groups them by event name instead of preserving their global arrival order. Confirmed at commit ec9af14. microsoft/durabletask-go#...
Open Graph Description: Bug When continue_as_new(..., save_events=True) carries buffered external events to the next execution, it groups them by event name instead of preserving their global arrival order. Confirmed at c...
X Description: Bug When continue_as_new(..., save_events=True) carries buffered external events to the next execution, it groups them by event name instead of preserving their global arrival order. Confirmed at c...
Opengraph URL: https://github.com/microsoft/durabletask-python/issues/277
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Preserve global arrival order of external events carried across continue-as-new","articleBody":"## Bug\n\nWhen `continue_as_new(..., save_events=True)` carries buffered external events to the next execution, it groups them by event name instead of preserving their global arrival order.\n\nConfirmed at commit ec9af14386ba737f3598e33867ba080f99b3d5e1. microsoft/durabletask-go#163 preserves global ordering using arrival-order metadata; Python's equivalent path currently does not.\n\n## Reproduction\n\nAn orchestrator waits only on a timer, then continues as new with `save_events=True`. In the timer-completion batch, deliver events `a:1`, `b:2`, `a:3`, with no pending event waits.\n\n**Actual:** carryover is `a:1`, `a:3`, `b:2`.\n\n**Expected:** carryover is `a:1`, `b:2`, `a:3`, exactly once and in arrival order.\n\n## Relevant code and scope\n\n`durabletask/worker.py`: `_received_events` is a dictionary of per-name payload lists; `get_actions()` iterates that dictionary to build `carryoverEvents`. Buffer consumption in `wait_for_external_event()` and new buffering in `process_event()` must remain consistent.\n\nMaintain case-insensitive matching, FIFO consumption for each name, raw serialized payload preservation/custom converters, absent/null payload behavior, replay, cancellation, and `save_events=False`. Preserve only unconsumed buffered events, not ones already delivered to live waits.\n\nThis affects shared core execution used by Azure Managed and this repository's Azure Functions provider. Add focused regression coverage and applicable Unreleased changelog entries. The separate defect where abandoned losing waits consume trailing events should not be bundled into this fix.","author":{"url":"https://github.com/andystaples","@type":"Person","name":"andystaples"},"datePublished":"2026-09-29T17:41:19Z","url":"https://github.com/microsoft/durabletask-python/issues/277"}
| 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:d8e4834b-56aa-19d3-c64f-7d789dffc46d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C57E:391663:A16A2:DF635:6AFE2E4F |
| html-safe-nonce | 17b622d7305865b1beeeac5d100ab8c59888d68e5a47f31417c4e625708605f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTdFOjM5MTY2MzpBMTZBMjpERjYzNTo2QUZFMkU0RiIsInZpc2l0b3JfaWQiOiI2ODE2MTQ1MjAxMTMyNjEzMTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 79f85223b37bf79a4918502562df875ad799b1b56478e76912253d6392e7f0cb |
| hovercard-subject-tag | issue:5634594740 |
| 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/277/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c74aa54b7009b4469e33cbaa3392f7ee84a08b73120caf5a79a744a458324ac7/microsoft/durabletask-python/issues/277 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c74aa54b7009b4469e33cbaa3392f7ee84a08b73120caf5a79a744a458324ac7/microsoft/durabletask-python/issues/277 |
| og:image:alt | Bug When continue_as_new(..., save_events=True) carries buffered external events to the next execution, it groups them by event name instead of preserving their global arrival order. Confirmed at c... |
| 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