Skip to content

[Docker-compose] Airflow scheduler don't load dags when using dask executor #36990

Closed Answered by lutuantai95
lutuantai95 asked this question in General
Discussion options

You must be logged in to vote

There has been a bit of confusion here. I think the place to put the airflow.cfg file is /opt/airlfow/ but that is not correct, airflow webserver loaded default airflow.cfg file somewhere. So I edited directly on the environment variables in docker-compose.yml as below:

...
environment:
    &airflow-common-env
    AIRFLOW__CORE__EXECUTOR: airflow.providers.daskexecutor.executors.dask_executor.DaskExecutor
    AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@postgres/airflow
    AIRFLOW__DASK__CLUSTER_ADDRESS: scheduler:8786
    # AIRFLOW__CELERY__RESULT_BACKEND: db+postgresql://airflow:airflow@postgres/airflow
    # AIRFLOW__CELERY__BROKER_URL: redis://:@redis:63…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@narayan-upside
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lutuantai95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants