From bfd57a5e6da0d9619aae500a28bd4e3ca1b30f98 Mon Sep 17 00:00:00 2001 From: Ari Zellner Date: Thu, 8 Jun 2017 15:42:46 +0300 Subject: [PATCH] fix orchestrated destroy --- app/models/ext_management_system.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/ext_management_system.rb b/app/models/ext_management_system.rb index 4d5804a11c7..a2365752a00 100644 --- a/app/models/ext_management_system.rb +++ b/app/models/ext_management_system.rb @@ -449,8 +449,8 @@ def orchestrate_destroy disable! if enabled? if self.destroy == false - _log.info("Cant #{self.class.name} with id: #{id}, workers still in progress. Requeuing destroy...") - schedule_destroy_queue(id, :deliver_on => 15.seconds.from_now) + _log.info("Cannot destroy #{self.class.name} with id: #{id}, workers still in progress. Requeuing destroy...") + self.class.schedule_destroy_queue(id, 15.seconds.from_now) else _log.info("#{self.class.name} with id: #{id} destroyed") end