Skip to content

Commit

Permalink
Update project_extension.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkb7 authored Sep 24, 2024
1 parent 835f670 commit 9c92ae8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion omnibus/lib/project_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def ddwcssign(file)
# retry a few times
max_retries = 3
attempts = 0
delay = 2

begin
attempts += 1
Expand Down Expand Up @@ -75,7 +76,7 @@ def ddwcssign(file)
# Retry logic: raise error after 3 attempts
if attempts < max_retries
log.info(self.class.name) { "Retrying signing #{file} (Attempt #{attempts + 1})" }
sleep(2) # Add a small delay before retrying (optional)
sleep(delay)
retry
else
raise "Failed to sign with dd-wcs after #{max_retries} attempts"
Expand Down

0 comments on commit 9c92ae8

Please sign in to comment.