cli airflow db without dags and plugings #24261
-
DescriptionCurrently If in my conf I have a xcom_backend or/and a secret_backend I can't run the cli version: '3.8'
services:
airflow_init_db:
image: airflow_v2
env_file:
- ./conf/airflow.env
volumes:
# Link for custom_xcom_backend and custom_secret_backend
- $AIRFLOW_DAGS_SRC_PATH/utils/backends/:/usr/local/airflow/dags/utils/backends/
command: airflow db upgrade without the volume mapping it fail with
Use case/motivationIt would allow running the cli ( my main motivation is that I'm using gcp composer and the db update K8S job do not sync the dags and plugins ( from gcs ) before running the cmd Related issuesNo response Are you willing to submit a PR?
Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can override the configuration that currently causes the plugins to be loaded to not do it. AIRFLOW__CORE__..... speciflically to run the CLI. Would that solve the problem @raphaelauv ? |
Beta Was this translation helpful? Give feedback.
-
I also converted it to a discussion as it's likeley where it belongs. |
Beta Was this translation helpful? Give feedback.
You can override the configuration that currently causes the plugins to be loaded to not do it. AIRFLOW__CORE__..... speciflically to run the CLI.
Would that solve the problem @raphaelauv ?