Published 9 days ago
This workflow integrates the Apache Airflow API DAGRun and XCom. It enables n8n to trigger Airflow DAGs and retrieve the execution results.
Update Airflow API Link Prefix
airflow-api
node.http(s)://ip:port
.https://airflow.example.com
Configure Authentication
Airflow: dag_run
node.Basic Auth
credentials with your Airflow username and password.Airflow: dag_run - state
and Airflow: dag_run - get result
nodes.Security Note: Using Basic Authentication requires storing credentials in plaintext. If possible, consider using API Keys or Tokens for enhanced security.
can create on DAG Runs
, can read on DAG Runs
, can read on XComs
, can edit on DAGs
, and can read on DAGs
.To execute this workflow, use the Execute Sub-workflow node with the following input parameters:
Airflow: dag_run - state
check.Airflow: dag_run - state
before returning an error.Airflow: dag_run - get result
.return_value
is stored in the value
field.