Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log_cleanup dag fails #144

Open
e-compagno opened this issue Sep 7, 2024 · 0 comments
Open

log_cleanup dag fails #144

e-compagno opened this issue Sep 7, 2024 · 0 comments

Comments

@e-compagno
Copy link

The log cleanup fails with error

INFO - Running Cleanup Process...
[2024-09-07, 00:00:09 UTC] {subprocess.py:93} INFO - Executing Find Statement: find /opt/airflow/logs/*/* -type f -mtime      +40
[2024-09-07, 00:00:10 UTC] {subprocess.py:93} INFO - environment: line 25: /usr/bin/find: Argument list too long

Apparently this is due to line

FIND_STATEMENT="find ${BASE_LOG_FOLDER}/*/* -type f -mtime \

where

find ${BASE_LOG_FOLDER}/*/* -type f -mtime +${MAX_LOG_AGE_IN_DAYS}

should be replaced by

find ${BASE_LOG_FOLDER}/ -name "*" -type f -mtime +${MAX_LOG_AGE_IN_DAYS}

following this link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant