Skip to content

Commit 1f39734

Browse files
committed
fix: airflow configuration
1 parent 9f4a8c1 commit 1f39734

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/airflow/docker-compose.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ x-airflow-common:
6161
AIRFLOW__CORE__FERNET_KEY: ''
6262
AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION: 'true'
6363
AIRFLOW__CORE__LOAD_EXAMPLES: 'true'
64-
AIRFLOW__CORE__EXECUTION_API_SERVER_URL: 'http://airflow-apiserver:7507/execution/'
64+
AIRFLOW__CORE__EXECUTION_API_SERVER_URL: 'http://airflow-apiserver:8080/execution/'
6565
# yamllint disable rule:line-length
6666
# Use simple http server on scheduler for health checks
6767
# See https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/logging-monitoring/check-health.html#scheduler-health-check-server
@@ -72,6 +72,16 @@ x-airflow-common:
7272
_PIP_ADDITIONAL_REQUIREMENTS: ${_PIP_ADDITIONAL_REQUIREMENTS:-}
7373
# The following line can be used to set a custom config file, stored in the local config folder
7474
AIRFLOW_CONFIG: '/opt/airflow/config/airflow.cfg'
75+
#added to debug
76+
AIRFLOW__DATABASE__SQL_ALCHEMY_POOL_RECYCLE: 1800
77+
AIRFLOW__DATABASE__SQL_ALCHEMY_POOL_PRE_PING: True
78+
AIRFLOW__CELERY__WORKER_CONCURRENCY: 4
79+
AIRFLOW__CELERY__WORKER_PREFETCH_MULTIPLIER: 1
80+
AIRFLOW__CELERY__WORKER_HIJACK_ROOT_LOGGER: False
81+
AIRFLOW__CELERY__WORKER_HEARTBEAT: 30
82+
AIRFLOW__SCHEDULER__SCHEDULER_HEARTBEAT_SEC: 10
83+
AIRFLOW__SCHEDULER__SCHEDULER_JOB_HEARTBEAT_SEC: 5
84+
7585
volumes:
7686
- ${AIRFLOW_PROJ_DIR:-.}/dags:/opt/airflow/dags
7787
- ${AIRFLOW_PROJ_DIR:-.}/logs:/opt/airflow/logs

0 commit comments

Comments
 (0)