Skip to content

Commit 6cd19b0

Browse files
authored
Quieter output during asset compilation (#30565)
The "Still waiting ....." message was emitted every second, which can be quite noisy even on moderate machines. This reduces the message to once every 5 seconds.
1 parent 7421b3e commit 6cd19b0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Dockerfile.ci

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,9 @@ function wait_for_asset_compilation() {
628628
echo
629629
local counter=0
630630
while [[ -f "${AIRFLOW_SOURCES}/.build/www/.asset_compile.lock" ]]; do
631-
echo "${COLOR_BLUE}Still waiting .....${COLOR_RESET}"
631+
if (( counter % 5 == 2 )); then
632+
echo "${COLOR_BLUE}Still waiting .....${COLOR_RESET}"
633+
fi
632634
sleep 1
633635
((counter=counter+1))
634636
if [[ ${counter} == "30" ]]; then

scripts/docker/entrypoint_ci.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ function wait_for_asset_compilation() {
5252
echo
5353
local counter=0
5454
while [[ -f "${AIRFLOW_SOURCES}/.build/www/.asset_compile.lock" ]]; do
55-
echo "${COLOR_BLUE}Still waiting .....${COLOR_RESET}"
55+
if (( counter % 5 == 2 )); then
56+
echo "${COLOR_BLUE}Still waiting .....${COLOR_RESET}"
57+
fi
5658
sleep 1
5759
((counter=counter+1))
5860
if [[ ${counter} == "30" ]]; then

0 commit comments

Comments
 (0)