Skip to content

Instantly share code, notes, and snippets.

@avram-dames
Last active July 30, 2017 19:26
Show Gist options
  • Save avram-dames/96b9908bf43514d230b4054da91fb116 to your computer and use it in GitHub Desktop.
Save avram-dames/96b9908bf43514d230b4054da91fb116 to your computer and use it in GitHub Desktop.
minimal airflow dag for testing deployment
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from datetime import datetime, timedelta
dag = DAG(
'tutorial',
start_date=datetime.today() - timedelta(days=1),
schedule_interval=timedelta(days=1)
)
t1 = BashOperator(
task_id='print_date',
bash_command='date',
dag=dag
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment