Skip to content

Commit

Permalink
Add retries for installing package from PyPi
Browse files Browse the repository at this point in the history
This solves sporadic failures when building images in China regions

Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster committed Aug 16, 2024
1 parent d15b2b6 commit acc7dac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cookbooks/aws-parallelcluster-awsbatch/recipes/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@
# Install aws-parallelcluster-awsbatch-cli package
execute "pip_install_parallelcluster_awsbatch_cli" do
command "#{node['cluster']['awsbatch_virtualenv_path']}/bin/pip install aws-parallelcluster-awsbatch-cli==#{node['cluster']['parallelcluster-awsbatch-cli-version']}"
retries 3
retry_delay 5
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@
else
execute "install official aws-parallelcluster-node" do
command "#{virtualenv_path}/bin/pip install aws-parallelcluster-node==#{node['cluster']['parallelcluster-node-version']}"
retries 3
retry_delay 5
end
end

0 comments on commit acc7dac

Please sign in to comment.