Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[hm] guarding against race condition when a droplet is deleted before

a delayed restart of instance happens.

Change-Id: Iaabc2ffdccaa4c7c3bbfd8e974d7de52baa4d642
  • Loading branch information...
commit 250983f231d05b58fe773f504b281af6224b4e99 1 parent 67b45c9
@bnugmanov bnugmanov authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 health_manager/lib/health_manager.rb
View
6 health_manager/lib/health_manager.rb
@@ -746,6 +746,12 @@ def update_droplet(droplet)
def start_instances(droplet_id, indices, high_priority = false)
droplet_entry = @droplets[droplet_id]
+
+ if droplet_entry.nil?
+ @logger.info("droplet #{droplet_id} went away, aborting start_instances")
+ return
+ end
+
start_message = {
:droplet => droplet_id,
:op => :START,
Please sign in to comment.
Something went wrong with that request. Please try again.