-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix orchestrated destroy #15339
fix orchestrated destroy #15339
Conversation
cc @simon3z |
app/models/ext_management_system.rb
Outdated
@@ -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("Cant destroy #{self.class.name} with id: #{id}, workers still in progress. Requeuing destroy...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this to Cannot destroy
or Not destroying...
? Sorry I didn't see this before. Cant
doesn't look right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor typo
8f33fb2
to
2661abd
Compare
fixed |
app/models/ext_management_system.rb
Outdated
@@ -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 destroy #{self.class.name} with id: #{id}, workers still in progress. Requeuing destroy...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, sorry @zeari, there's one too many destroys here ^
2661abd
to
bfd57a5
Compare
Checked commit zeari@bfd57a5 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Sorry about that. fixed again. |
_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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the future, please add a test.
Small fix to #14848
@jrafanie @durandom