How to Trigger and Monitor Apache Airflow DAGs from a .NET 10 Service
A technical guide demonstrates how to integrate Apache Airflow with .NET 10 by having a C# service consume Airflow's public REST API rather than rewriting DAGs or embedding Python. The .NET service authenticates via JWT, triggers a DAG run with parameters, stores the returned run ID, and polls for completion status. The example uses Airflow 3.3's /api/v2 endpoints alongside HttpClient, token renewal on 401 responses, timeout handling, and cancellation propagation. The integration is exposed through a Minimal API so external systems can initiate workflows without knowing Airflow internals. The guide requires .NET 10 SDK and Docker Compose 2.14 or higher, with a self-contained repository bundling Airflow 3.3.0 and PostgreSQL 16.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in