This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-5-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 04d1c17efc64497e69499910b2808bd1a452ab4e Author: Ivan Reche <[email protected]> AuthorDate: Mon Jan 16 14:05:34 2023 -0300 Fix hot loop with a burst of log messages (#28778) (#28780) * Fix hot loop with a burst of log messages (#28778) * Add missing inline in Dockerfile (cherry picked from commit 4b1a36f833b77d3f0bec78958d1fb9f360b7b11b) --- Dockerfile | 3 ++- scripts/docker/clean-logs.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3da82f2d2b..6eb79e57f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1025,7 +1025,8 @@ while true; do xargs -0 rm -f seconds=$(( $(date -u +%s) % EVERY)) - (( seconds < 1 )) || sleep $((EVERY - seconds)) + (( seconds < 1 )) || sleep $((EVERY - seconds - 1)) + sleep 1 done EOF diff --git a/scripts/docker/clean-logs.sh b/scripts/docker/clean-logs.sh index 57b6e8b605..0c775b14e6 100644 --- a/scripts/docker/clean-logs.sh +++ b/scripts/docker/clean-logs.sh @@ -36,5 +36,6 @@ while true; do xargs -0 rm -f seconds=$(( $(date -u +%s) % EVERY)) - (( seconds < 1 )) || sleep $((EVERY - seconds)) + (( seconds < 1 )) || sleep $((EVERY - seconds - 1)) + sleep 1 done
