Azure / Azure/azure-functions-durable-python
Add call_activity_with_retry to DurableOrchestrationContext class
- 主要言語
- Python
- スター
- 157
- フォーク
- 70
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 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
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100