Schedule a DAG in airflow to run every 5 minutes -
i have dag in airflow , running each hour (@hourly). possible have running each 5 minutes ?
yes, here's example of dag have running every 5 min:
dag = dag(dag_id='eth_rates', default_args=args, schedule_interval='*/5 * * * *', dagrun_timeout=timedelta(seconds=5))
schedule_interval
accepts cron expression: https://en.wikipedia.org/wiki/cron#cron_expression
Comments
Post a Comment