Azure / Azure/azure-functions-durable-python

Logging or Exceptions when Durable Functions Activity Does Not Exist

Ouverte
#301 4 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
Debuggability Enhancement P2
Langage dominant
Python
Étoiles
157
Forks
70
Merge moyen
2 j 10 h
PR mergées (30 j)
2

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par DurableOrchestrationContext.call_activity() et suivez la manière dont la bibliothèque et le runtime traitent un nom d’activité inconnu. Vérifiez les tests existants de dispatch des activités et de gestion des erreurs ; le travail est terminé lorsqu’une activité manquante produit un retour clair au lieu de s’arrêter sans explication utile, avec une couverture de régression.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
azure, python
Domaine
backend
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.