Add task hub and instance ID prefix orchestration query filters
還沒有人認領這個 Issue。
評估
研究方向
從 OrchestrationQuery 和 build_query_instances_req() 開始,然後追蹤它們的同步和非同步用戶端呼叫方。將現有的查詢欄位與 .NET OrchestrationQuery 參考進行比較,並為每個篩選器分別使用以及同時使用時新增測試;當兩個欄位都序列化到 InstanceQuery 中,且省略的欄位維持目前的 requests 不變時,即視為完成。
由索引模型根據 Issue 內容生成。
描述
Summary
The protobuf InstanceQuery supports taskHubNames and instanceIdPrefix, and the .NET Durable Task client exposes both filters. Python's OrchestrationQuery and request builder currently omit them.
Current behavior
Python orchestration queries support creation-time bounds, runtime status, result limits, and payload inclusion. There is no way to:
- restrict results to one or more task hubs;
- restrict results to instance IDs beginning with a prefix.
The generated protobuf already contains both fields, so no protocol update is required.
Expected parity
Extend OrchestrationQuery with Python-style equivalents of:
task_hub_names: list[str] | Noneinstance_id_prefix: str | None
Serialize these through build_query_instances_req() to InstanceQuery.taskHubNames and InstanceQuery.instanceIdPrefix for both sync and async clients.
.NET references:
Acceptance criteria
- Callers can filter orchestration queries by task hub names.
- Callers can filter orchestration queries by instance ID prefix.
- Both fields are serialized into the existing protobuf request.
- Existing queries remain backward compatible when the fields are omitted.
- Unit tests cover each filter independently and together.
- 主要語言
- Python
- 星號
- 40
- 分支
- 33
- 平均合併
- 7 小時 54 分鐘
- 30 天內合併 PR
- 5
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/durabletask-python 的其他 Issue
-
[Azure Functions] Simplify large-payload configuration by reusing an existing storage connection 未關閉
難度 4/5 3-5 天 新手友好度 45/100
microsoft/durabletask-python#271 ·
-
難度 4/5 3-5 天 新手友好度 35/100
microsoft/durabletask-python#269 ·
-
難度 5/5 一週以上 新手友好度 45/100
microsoft/durabletask-python#268 ·
-
難度 3/5 1-2 天 新手友好度 72/100
microsoft/durabletask-python#266 ·
-
難度 5/5 一週以上 新手友好度 38/100
microsoft/durabletask-python#249 ·
查看 microsoft/durabletask-python 的全部 Issue
相似的 Issue
-
bug confirmed issue
難度 2/5 1-3 小時 新手友好度 75/100
open-webui/open-webui#30750 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
enhancement
難度 2/5 1-3 小時 新手友好度 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
-
good first issue
難度 1/5 1 小時以內 新手友好度 90/100