Orchestration Trigger via FastAPI

Offen
#444 7 Kommentare 3 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@bhagyshricompany arbeitet bereits daran.

Seit 11.7.2023.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

Enhancement P2 question
Is your question related to a specific version? If so, please specify:

V2 Model

What binding does your question apply to, if any? (e.g. Blob Trigger, Event Hub Binding, etc)

Azure Durable Functions Orchestration Triggers

Question

We're planning to write several API endpoints using Azure Durable Functions. We'd like to use FastAPI and its several features like OpenAPI, JSON Schema validation. We cannot use non-Durable functions, because we have potentially long-running tasks such as approval flows, or tasks may intermittently fail and have to be retried until completed.

I've found an article how to use FastAPI with an HTTP Trigger, but you can't just use that information and do the same with the Orchestration Trigger.

The conceptual flow or the orchestration is this:

  1. Client sends JSON to Orchestration Trigger HTTP endpoint to start the orchestration e.g., to request the creation of an object in a cloud-application.
  2. The JSON describes what activies the orchestrator calls, in which order and what parameters is passes.
  3. If the JSON body is invalid, the orchestration trigger should return an error message and not start the orchestration at all.

And also, we want to provide a generated OpenAPI/Swagger documentation for the orchestration triggers.

Is this even possible at the moment?

Vorherrschende Sprache
Python
Sterne
157
Forks
71
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Azure/azure-functions-durable-python

Alle Issues in Azure/azure-functions-durable-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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