You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ckljohn (via GitHub)" <gi...@apache.org> on 2023/08/11 01:37:55 UTC

[GitHub] [airflow] ckljohn commented on a diff in pull request #33252: feat: remove empty log folders when cleanup

ckljohn commented on code in PR #33252:
URL: https://github.com/apache/airflow/pull/33252#discussion_r1290820972


##########
scripts/docker/clean-logs.sh:
##########
@@ -35,6 +35,9 @@ while true; do
     -type f -mtime +"${RETENTION}" -name '*.log' -print0 | \
     xargs -0 rm -f
 
+  find "${DIRECTORY}"/logs \
+    -type d -mtime +"${RETENTION}" -empty -delete

Review Comment:
   You are right.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org