Загрузка данных


sudo -u airflow -i
airflow version
python --version

AIRFLOW_VERSION=2.9.3
PY=3.11
CON="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PY}.txt"

pip freeze > ~/pip-before-fix.txt

pip install "apache-airflow==${AIRFLOW_VERSION}" pandas requests apache-airflow-providers-postgres psycopg2-binary --constraint "${CON}" --dry-run

pip install "apache-airflow==${AIRFLOW_VERSION}" pandas requests apache-airflow-providers-postgres psycopg2-binary --constraint "${CON}"

exit
sudo systemctl restart airflow-scheduler airflow-webserver
airflow db check
systemctl status airflow-scheduler --no-pager