Skip to content

Commit

Permalink
Share a airflow-log-storage volume to store logs locally
Browse files Browse the repository at this point in the history
This is needed to view tasks in up for retry states
  • Loading branch information
ranlu committed Nov 22, 2023
1 parent b5b00da commit afce3fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/docker-compose-CeleryExecutor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ x-airflow-common:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
- airflow-log-storage:${AIRFLOW__LOGGING__BASE_LOG_FOLDER}
deploy:
restart_policy:
condition: any
Expand All @@ -35,6 +36,7 @@ volumes:
grafana-storage:
redis-storage:
jupyterlab-storage:
airflow-log-storage:

services:
rabbitmq:
Expand Down
1 change: 1 addition & 0 deletions deploy/docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ x-airflow-common:
# - /my/local/data:/path/to/mount
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
- airflow-log-storage:${AIRFLOW__LOGGING__BASE_LOG_FOLDER}
deploy:
restart_policy:
condition: any
Expand Down
4 changes: 4 additions & 0 deletions scripts/entrypoint-dood.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ echo "start script with group $DOCKER_GROUP"

if [[ -z "${_AIRFLOW_DB_UPGRADE=}" ]] ; then
python scripts/install_packages.py
else
if [ ! -f .sudo.disabled ]; then
sudo chown -R $AIRFLOW_USER $AIRFLOW__LOGGING__BASE_LOG_FOLDER
fi
fi

if [[ -n "${CONDA_INSTALL_PYTORCH=}" ]] ; then
Expand Down

0 comments on commit afce3fd

Please sign in to comment.