Apache Airflow · Arazzo Workflow
Apache Airflow Trigger a DAG Run and Wait for Completion
Version 1.0.0
Unpause a DAG if needed, trigger a run with a configuration payload, and poll until the run reaches a terminal state.
View Spec
View on GitHub
ApacheDAGData PipelineETLOpen SourceOrchestrationPythonSchedulingWorkflowArazzoWorkflows
Provider
Workflows
trigger-dag-run
Trigger an Airflow DAG run and block until it succeeds or fails.
Resolves the DAG, unpauses it when paused, creates a DAG run with a caller supplied run id and conf payload, polls the run to a terminal state, and returns the final state alongside the task instance roster.
1
confirmDag
get_dag
Read the DAG to confirm it exists and to learn whether it is currently paused before attempting to trigger it.
2
unpauseDag
patch_dag
Unpause the DAG so the scheduler will actually run the tasks. The update_mask limits the patch to the is_paused field, leaving every other DAG attribute untouched.
3
triggerRun
post_dag_run
Create the DAG run with the caller supplied run id, logical date, and conf payload. Airflow returns the run immediately in the queued state.
4
waitForRun
get_dag_run
Poll the DAG run until Airflow stamps an end_date, which it does only when the run reaches a terminal state (success or failed). Retries every 15 seconds for up to 80 attempts (~20 minutes).
5
summarizeTasks
get_task_instances
List the task instances for the finished run so the caller can report which tasks ran, how long they took, and where any failure landed.