airflow-scheduler

How to run same dag two times in a single run in Airflow

How to run same dag two times in a single run in Airflow Question: I am absolutely new to Airflow. I have one requirement where I have to run two EMR jobs. . Currently I have a python script which depends on some input files, if present it triggers a EMR job. My new requirement …

Total answers: 2

Airflow dynamic tasks at runtime

Airflow dynamic tasks at runtime Question: Other questions about ‘dynamic tasks’ seem to address dynamic construction of a DAG at schedule or design time. I’m interested in dynamically adding tasks to a DAG during execution. from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.operators.python_operator import PythonOperator from datetime import datetime dag = DAG(‘test_dag’, description=’a …

Total answers: 4