Azure / Azure/azure-functions-durable-python

Add call_activity_with_retry to DurableOrchestrationContext class

Aperta
#486 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Enhancement P2
Lingua principale
Python
Stelle
157
Fork
70
Merge medio
2g 10h
PR unite (30g)
2

Descrizione

💡 **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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by inspecting the DurableOrchestrationContext class and its existing call_activity_with_retry and call_sub_orchestrator_with_retry methods. Compare their behavior with call_http and define what a specified retry count should mean; completion should provide retrying HTTP calls, with exponential backoff as an optional enhancement.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
backend
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.