Skip to content

Commit

Permalink
Try to recover once again
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Nov 23, 2023
1 parent b604091 commit 5ba90e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ def service_delete(id)
end

def service_destroy(id)
service_recover(id, { 'delete' => true })
response = service_recover(id, { 'delete' => true })
return if response[0] == 204

# attempt a second recover
@logger.error response[1]
sleep 1
return service_recover(id, { 'delete' => true })
end

def service_recover(id, options = {})
Expand Down

0 comments on commit 5ba90e7

Please sign in to comment.