This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 4b1a36f833 Fix hot loop with a burst of log messages (#28778) (#28780)
4b1a36f833 is described below
commit 4b1a36f833b77d3f0bec78958d1fb9f360b7b11b
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
---
Dockerfile | 3 ++-
scripts/docker/clean-logs.sh | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 42b9db931f..74634887a9 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