Add task hub and instance ID prefix orchestration query filters
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
Bắt đầu với OrchestrationQuery và build_query_instances_req(), sau đó lần theo các client caller đồng bộ và bất đồng bộ của chúng. So sánh các trường query hiện có với các tham chiếu .NET OrchestrationQuery và thêm các bài kiểm thử cho từng bộ lọc riêng lẻ và khi kết hợp với nhau; được xem là hoàn tất khi cả hai trường đều được serialize vào InstanceQuery và các trường bị bỏ qua vẫn giữ nguyên các requests hiện tại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 40
- Fork
- 33
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 6
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/durabletask-python
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
microsoft/durabletask-python#268 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
microsoft/durabletask-python#266 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
microsoft/durabletask-python#249 ·
-
bug Functions Parity
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
microsoft/durabletask-python#241 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
microsoft/durabletask-python#234 ·
Tất cả issue của microsoft/durabletask-python
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
learningequality/ricecooker#747 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
run-llama/llama_index#23199 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
KhronosGroup/glTF-Blender-IO#2769 ·