Azure / Azure/azure-functions-durable-python

Logging or Exceptions when Durable Functions Activity Does Not Exist

Offen
#301 4 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Debuggability Enhancement P2
Vorherrschende Sprache
Python
Sterne
157
Forks
70
Ø Merge
2 T. 10 Std.
Gemergte PRs (30 T.)
2

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne bei DurableOrchestrationContext.call_activity() und verfolge, wie ein unbekannter Aktivitätsname von der Bibliothek und der Runtime behandelt wird. Prüfe die bestehenden Tests für die Aktivitätsverteilung und die Fehlerbehandlung; als abgeschlossen gilt die Aufgabe, wenn eine fehlende Aktivität eine klare Rückmeldung erzeugt, anstatt ohne nützliche Erklärung abzubrechen, und eine Regressionstestabdeckung vorhanden ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, python
Bereich
backend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.