Skip to content

Instantly share code, notes, and snippets.

@CribberSix
Created October 24, 2021 16:33
Show Gist options
  • Save CribberSix/47b094787cd632111d0ff1e0a1538be9 to your computer and use it in GitHub Desktop.
Save CribberSix/47b094787cd632111d0ff1e0a1538be9 to your computer and use it in GitHub Desktop.
with DAG(
dag_id='my_dag_name',
schedule_interval=None,
start_date=days_ago(2),
catchup=False,
) as dag:
preparation = PythonOperator(
task_id='preparation',
python_callable=prepare,
)
startup_task = PythonOperator(
task_id='startup_task',
python_callable=startup,
)
waiting_task = PythonOperator(
task_id='waiting_task',
python_callable=wait_for_update,
)
finalization = PythonOperator(
task_id='continuation_task',
python_callable=finalize,
)
preparation >> startup_task >> waiting_task >> finalization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment