File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,9 +81,11 @@ if [ "$AIRFLOW_API_VERSION" = "v2" ]; then
8181 -d " {\" username\" : \" $AIRFLOW_USERNAME \" , \" password\" : \" $AIRFLOW_PASSWORD \" }" \
8282 | jq -r .access_token)
8383 auth_params=(-H " Authorization: Bearer $jwt_token " )
84+ extra_arguments=" \" logical_date\" : null, "
8485elif [ " $AIRFLOW_API_VERSION " = " v1" ]; then
8586 dag_url=" $AIRFLOW_ENDPOINT /api/v1/dags/${dag_id} "
8687 auth_params=(-u " $AIRFLOW_USERNAME :$AIRFLOW_PASSWORD " )
88+ extra_arguments=" "
8789fi
8890
8991is_paused=$( _curl " ${auth_params[@]} " " $dag_url " | jq .is_paused)
@@ -100,7 +102,7 @@ run_json=$(_curl "${auth_params[@]}" -X POST \
100102 " $dag_run_url " \
101103 -H ' Cache-Control: no-cache' \
102104 -H ' Content-Type: application/json' \
103- -d " {\" logical_date \" : null, \" conf\" : $dag_config }" )
105+ -d " {$extra_arguments \" conf\" : $dag_config }" )
104106dag_run_id=$( echo " $run_json " | jq -r .dag_run_id)
105107
106108echo " Started dag run ID: $dag_run_id "
You can’t perform that action at this time.
0 commit comments