Gal Bachar
06/01/2022, 2:03 PMname: Post merge
description: My Description
on:
post-merge:
branches:
- master
hooks:
- id: increment_docgen_version
type: airflow
description: Increment repo version
properties:
url: "<http://airflow-webserver:8080>"
dag_id: "increment_tag"
username: "LakeFSService"
password: "{{ ENV.AIRFLOW_PASSWORD }}"
- id: sync_to_s3
type: airflow
description: Sync changes to S3
properties:
url: "<http://airflow-webserver:8080>"
dag_id: "s3_backup_sync"
username: "LakeFSService"
password: "{{ ENV.AIRFLOW_PASSWORD }}"
How can I run the hooks synchronously? ("increment_docgen_version" and then "sync_to_s3")
I want "sync_to_s3" to run only after "increment_docgen_version" finishes (and "increment_tag" DAG result returns).
In this example I ask about 2 two hooks within this post-merge action, but if it matters, please assume I would like to run 5, 6, etc..Tal Sofer
06/01/2022, 2:25 PMNiro
06/01/2022, 2:58 PMNiro
06/01/2022, 3:03 PMGal Bachar
06/02/2022, 8:35 AMwait_for_dag
for the first hook! Thanks