Skip to content

Commit

Permalink
Add retries when no dynamoDB entry is found
Browse files Browse the repository at this point in the history
Add retries when no dynamoDB entry is found, for a total wait time of 2 additional minutes.

Signed-off-by: Luca Carrogu <carrogu@amazon.com>
  • Loading branch information
lukeseawalker committed Jul 11, 2023
1 parent 50343cc commit ff5c4f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cookbooks/aws-parallelcluster-slurm/recipes/init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
if node['cluster']['node_type'] == "ComputeFleet"

ruby_block "retrieve compute node info" do
retries 12
retry_delay 10
block do
slurm_nodename = dynamodb_info
node.force_default['cluster']['slurm_nodename'] = slurm_nodename
Expand Down

0 comments on commit ff5c4f2

Please sign in to comment.