(maint) Fix bug where fail_pending_vm was logging an error before any timeouts are reached.

This commit is contained in:
isaac-hammes 2023-08-23 08:41:07 -07:00
parent 4481cdca1e
commit 8beab7f874

View file

@ -129,6 +129,8 @@ module Vmpooler
already_timed_out = time_since_clone > timeout
timing_out_soon = time_since_clone > timeout_notification && !redis.hget("vmpooler__vm__#{vm}", 'timeout_notification')
return true if !already_timed_out && !timing_out_soon
if already_timed_out
unless exists
remove_nonexistent_vm(vm, pool, redis)