This commit is contained in:
J. Nick Koston
2025-06-12 22:21:15 -05:00
parent 1cebeb53d3
commit 3d358cf431
2 changed files with 28 additions and 6 deletions

View File

@@ -118,6 +118,13 @@ start_esphome() {
(
# Add compile process limit for ESPHome internal parallelization
export ESPHOME_COMPILE_PROCESS_LIMIT=2
# For compilation, add a small random delay to reduce thundering herd effect
# This helps stagger the package installation requests
if [ "$esphome_command" = "compile" ]; then
sleep $((RANDOM % 3))
fi
python3 -m esphome -s component_name $target_component -s component_dir ../../components/$target_component -s test_name $test_name -s target_platform $target_platform $esphome_command $component_test_file
) &