Skip to content

Commit acc7dac

Browse files
Add retries for installing package from PyPi
This solves sporadic failures when building images in China regions Signed-off-by: Hanwen <[email protected]>
1 parent d15b2b6 commit acc7dac

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cookbooks/aws-parallelcluster-awsbatch/recipes/install.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,7 @@
5151
# Install aws-parallelcluster-awsbatch-cli package
5252
execute "pip_install_parallelcluster_awsbatch_cli" do
5353
command "#{node['cluster']['awsbatch_virtualenv_path']}/bin/pip install aws-parallelcluster-awsbatch-cli==#{node['cluster']['parallelcluster-awsbatch-cli-version']}"
54+
retries 3
55+
retry_delay 5
5456
end
5557
end

cookbooks/aws-parallelcluster-computefleet/recipes/install/parallelcluster_node.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@
3838
else
3939
execute "install official aws-parallelcluster-node" do
4040
command "#{virtualenv_path}/bin/pip install aws-parallelcluster-node==#{node['cluster']['parallelcluster-node-version']}"
41+
retries 3
42+
retry_delay 5
4143
end
4244
end

0 commit comments

Comments
 (0)