Azure / Azure/azure-functions-durable-python
Add call_activity_with_retry to DurableOrchestrationContext class
- 主要语言
- Python
- 星标
- 157
- 派生
- 70
- 平均合并
- 2 天 10 小时
- 30 天内合并 PR
- 2
描述
💡 **Feature description**
The `DurableOrchestrationContext` class has both a `call_activity_with_retry` method and a `call_sub_orchestrator_with_retry` method. Often times the call_http method fails for unknown and external reasons. Adding a `call_http` method that includes an option to retry a specified number of times would go a long way to improve the reliability of durable orchestrations. Adding an exponential backoff would be a nice plus.
💭 **Describe alternatives you've considered**
The obvious alternative is to wrap your API call into an activity function and use the `call_activity_with_retry` method. Creating new activity functions for each API call tends to bloat projects though. The v2 programming model may address this concern though - I'm still stuck on the v1 programming model for now.
贡献指南
调研方向
首先检查 DurableOrchestrationContext 类及其现有的 call_activity_with_retry 和 call_sub_orchestrator_with_retry 方法。将它们的行为与 call_http 进行比较,并定义指定的重试次数应表示什么;完成后应支持重试 HTTP 调用,指数退避作为可选增强功能。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- backend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100