Skip to content
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

Find_by_queue_name expects a string as queue_name. #16359

Merged
merged 1 commit into from
Oct 31, 2017

Conversation

juliancheal
Copy link
Member

Multi EMS Workers' queue_names are arrays.

to_s converts the array to a string.

Multi EMS Workers' queue_names are arrays.

to_s converts the array to a string.
@juliancheal
Copy link
Member Author

@miq-bot add_label bug

@miq-bot miq-bot added the bug label Oct 31, 2017
@juliancheal
Copy link
Member Author

@miq-bot add_label core/workers

@juliancheal
Copy link
Member Author

@miq-bot assign @Fryguy

@juliancheal
Copy link
Member Author

@Fryguy I can't believe, I went on a wild goose chase to solve this. First "fixing" it in the Amazon Provider, then trying a few other things in the PerEMSMixin to eventually solve it, but adding in a to_s. So annoyed 😡

@juliancheal
Copy link
Member Author

Adding a provider and seeing the workers spawn up

  • kill -9 on one of workers and seeing it come back - works
  • kill -9 on all of workers and seeing them come back - works
  • delete the provider and seeing the workers shut down - works

@juliancheal
Copy link
Member Author

@miq-bot add_label gaprindashvili/yes

@miq-bot
Copy link
Member

miq-bot commented Oct 31, 2017

Checked commit juliancheal@32d8b5e with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 1 offense detected

app/models/mixins/per_ems_worker_mixin.rb

@juliancheal
Copy link
Member Author

❗️ - Line 73, Col 7 - Rails/DynamicFindBy - Use find_by instead of dynamic find_by_queue_name.

Don't blame me miq-bot legacy!

@Fryguy Fryguy merged commit 4fd6cfb into ManageIQ:master Oct 31, 2017
@Fryguy Fryguy added this to the Sprint 73 Ending Nov 13, 2017 milestone Oct 31, 2017
simaishi pushed a commit that referenced this pull request Oct 31, 2017
…kers

Find_by_queue_name expects a string as queue_name.
(cherry picked from commit 4fd6cfb)
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 0f663a0b68fb1d5c443731ee7a8ad22914dcd4c5
Author: Jason Frey <[email protected]>
Date:   Tue Oct 31 13:00:10 2017 -0400

    Merge pull request #16359 from juliancheal/fix_stopping_multi_ems_workers
    
    Find_by_queue_name expects a string as queue_name.
    (cherry picked from commit 4fd6cfba969df4f9ad670b6bf69b2c3e74d836d4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants