This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-9-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 7e23854c1cd8e53d8908ddb034cf59f988c48033
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun May 26 19:15:57 2024 +0200

    Also limit concurrent uv downloads when building (#39852)
    
    Follow up after #39810 - we have two places where we should set
    the limits - also in common.sh.
    
    (cherry picked from commit 993053ad3ea5a0d0dea7f3814d2497115392a620)
---
 Dockerfile               | 2 ++
 Dockerfile.ci            | 2 ++
 scripts/docker/common.sh | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 4b2c4eb6ed..21189ca7f1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -555,6 +555,8 @@ function common::get_packaging_tool() {
         fi
         export UPGRADE_EAGERLY="--upgrade --resolution highest"
         export UPGRADE_IF_NEEDED="--upgrade"
+        UV_CONCURRENT_DOWNLOADS=$(nproc --all)
+        export UV_CONCURRENT_DOWNLOADS
     else
         echo
         echo "${COLOR_BLUE}Using 'pip' to install Airflow${COLOR_RESET}"
diff --git a/Dockerfile.ci b/Dockerfile.ci
index da6aadb02d..1f718be197 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -501,6 +501,8 @@ function common::get_packaging_tool() {
         fi
         export UPGRADE_EAGERLY="--upgrade --resolution highest"
         export UPGRADE_IF_NEEDED="--upgrade"
+        UV_CONCURRENT_DOWNLOADS=$(nproc --all)
+        export UV_CONCURRENT_DOWNLOADS
     else
         echo
         echo "${COLOR_BLUE}Using 'pip' to install Airflow${COLOR_RESET}"
diff --git a/scripts/docker/common.sh b/scripts/docker/common.sh
index e357d9f57e..a934b6067e 100644
--- a/scripts/docker/common.sh
+++ b/scripts/docker/common.sh
@@ -55,6 +55,8 @@ function common::get_packaging_tool() {
         fi
         export UPGRADE_EAGERLY="--upgrade --resolution highest"
         export UPGRADE_IF_NEEDED="--upgrade"
+        UV_CONCURRENT_DOWNLOADS=$(nproc --all)
+        export UV_CONCURRENT_DOWNLOADS
     else
         echo
         echo "${COLOR_BLUE}Using 'pip' to install Airflow${COLOR_RESET}"

Reply via email to