Azure / Azure/azure-functions-durable-python
Logging or Exceptions when Durable Functions Activity Does Not Exist
- Ngôn ngữ chính
- Python
- Star
- 157
- Fork
- 70
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 2
Mô tả
Pretty simple request, but not sure how simple it would be to implement.
Basically I would like some sort of feedback when you use the call_activity() method of the DurableOrchestrationContext class with a Durable Function Activity that does not exist.
```python
import azure.functions as func
import azure.durable_functions as df
def orchestrator_function(context: df.DurableOrchestrationContext):
logging.info("Starting Activity!")
result = yield context.call_activity("I_Do_Not_Exist", None, None)
logging.info("You will never see me because the code stops at the above step!")
return result
main = df.Orchestrator.create(orchestrator_function)
```
Side note: I may or may not have spent an hour and a half troubleshooting an orchestrator only to realize it was a typo in the activity name.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu từ DurableOrchestrationContext.call_activity() và theo dõi cách thư viện và runtime xử lý tên activity không xác định. Kiểm tra các bài kiểm thử hiện có về điều phối activity và xử lý lỗi; được xem là hoàn tất khi activity bị thiếu tạo ra phản hồi rõ ràng thay vì dừng lại mà không có lời giải thích hữu ích, kèm theo kiểm thử hồi quy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, python
- Lĩnh vực
- backend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100