lib/simple_deploy/stack.rb in simple_deploy-0.5.4 vs lib/simple_deploy/stack.rb in simple_deploy-0.5.5
- old
+ new
@@ -21,9 +21,14 @@
end
def update(args)
if !deployment.clear_for_deployment? && args[:force]
deployment.clear_deployment_lock true
+
+ Backoff.exp_periods do |p|
+ sleep p
+ break if deployment.clear_for_deployment?
+ end
end
if deployment.clear_for_deployment?
@logger.info "Updating #{@name}."
attributes = stack_attribute_formater.updated_attributes args[:attributes]