Azure / Azure/azure-functions-durable-python

Add call_activity_with_retry to DurableOrchestrationContext class

Abierto
#486 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Enhancement P2
Lenguaje dominante
Python
Estrellas
157
Forks
70
Merge medio
2 d 10 h
PR fusionados (30 d)
2

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza inspeccionando la clase DurableOrchestrationContext y sus métodos existentes call_activity_with_retry y call_sub_orchestrator_with_retry. Compara su comportamiento con call_http y define qué debe significar un número de reintentos especificado; la implementación final debe proporcionar reintentos para las llamadas HTTP, con backoff exponencial como mejora opcional.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
backend
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.