microsoft / microsoft/durabletask-python
Composite tasks do not notify parent composites
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 40
- 分支
- 33
- 平均合併
- 2 天 2 小時
- 30 天內合併 PR
- 6
描述
WhenAllTask and WhenAnyTask mark themselves complete, but do not notify their parent composite.
This means the following orchestration does not resume when all activities complete:
all_task = task.when_all(activity_tasks)
winner = yield task.when_any([cancel_task, all_task])
A current workaround is to wait for each leaf task with repeated when_any calls. The workaround preserves cancellation, but Durable Task Scheduler no longer shows the standard Fan-out group.
Could composite completion propagate to the parent in the same way that CompletableTask.complete() does?
A regression test can compose when_any([cancel, when_all([a, b])]), complete a and b, and verify that the outer task completes with the inner when_all task.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先閱讀 WhenAllTask 和 WhenAnyTask,然後將它們的完成行為與 CompletableTask.complete() 進行比較。為 issue 中描述的 when_any([cancel, when_all([a, b])]) 新增回歸測試;done 表示完成 a 和 b 會使外部 task 與內部的 when_all task 一起完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- distributed-systems
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 活躍
- 描述清晰度
- 基本清楚
- 新手友好度
- 72/100