Slide 14
Slide 14 text
w λεΫؒͷґଘؔΛϏοτγϑτԋࢉࢠΛͬͯهड़
λεΫؒͷґଘؔ
# DAG
dag = DAG(‘test_dag’, start_date=datetime(2018, 4, 6)
# bashίϚϯυλεΫͷྫ
task_ls = BashOperator(
task_id='task_ls',
bash_command='ls -al',
dag=dag)
task_echo = BashOperator(
task_id='task_echo',
bash_command='echo "hoge"',
dag=dag)
task_date = BashOperator(
task_id='task_date',
bash_command='date "+%F %T"',
dag=dag)
# λεΫؒͷґଘؔΛϏοτԋࢉࢠͰهड़
task_ls >> task_echo
task_ls >> task_date