Skip to content

Commit

Permalink
feat: aligned with code-cliement
Browse files Browse the repository at this point in the history
  • Loading branch information
scientiststwin committed Jan 12, 2024
1 parent 290b9b1 commit 4ebe144
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.airflow.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AIRFLOW__API__AUTH_BACKENDS='airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session'
AIRFLOW__API__AUTH_BACKENDS="airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session"
AIRFLOW__CELERY__BROKER_URL=redis://:@redis:6379/0
AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://airflow:airflow@postgres/airflow
AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION=true
Expand Down
4 changes: 2 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

function ver() {
printf "%04d%04d%04d%04d" ${1//./ }
printf "%04d%04d%04d%04d" "${1//./ }"
}
airflow_version=$(AIRFLOW__LOGGING__LOGGING_LEVEL=INFO && gosu airflow airflow version)
airflow_version_comparable=$(ver ${airflow_version})
min_airflow_version=2.2.0
min_airflow_version_comparable=$(ver ${min_airflow_version})
min_airflow_version_comparable=$(ver "${min_airflow_version}")
if (( airflow_version_comparable < min_airflow_version_comparable )); then
echo
echo -e "\033[1;31mERROR!!!: Too old Airflow version ${airflow_version}!\e[0m"
Expand Down

0 comments on commit 4ebe144

Please sign in to comment.