Python ile Apache Airflow'a Giriş
Mike Metzger
Data Engineer
Görevler şunlardır:
example_task = BashOperator(task_id='bash_example',
bash_command='echo "Example!"')
$$
Upstream, önce demektir
Downstream, sonra demektir
# Define the tasks task1 = BashOperator(task_id='first_task', bash_command='echo 1' )task2 = BashOperator(task_id='second_task', bash_command='echo 2' )# Set first_task to run before second_task task1 >> task2 # or task2 << task1



Zincirli bağımlılıklar:
task1 >> task2 >> task3 >> task4
Karışık bağımlılıklar:
task1 >> task2 << task3
veya:
task1 >> task2
task3 >> task2


Python ile Apache Airflow'a Giriş