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

Delete any worker records that have a JSON queue_name #496

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Jul 17, 2020

Allowing miq_workers with a compound queue_name is a way to allow a
worker to dequeue for multiple ext_management_systems at once, aka
allowing an Amazon RefreshWorker to refresh the CloudManager and
NetworkManager in the same worker.

This has other side effects however including making it more difficult
to find a worker by an EMS (e.g. when destroying the EMS) and requires
that the base MiqWorker class do JSON.parse(self[:queue_name]) rescue self[:queue_name]

Another option is to have the child managers report their queue_name for
the refresh operation as the parent manager's queue_name.

ManageIQ/manageiq#20345

Allowing miq_workers with a compound queue_name is a way to allow a
worker to dequeue for multiple ext_management_systems at once, aka
allowing an Amazon RefreshWorker to refresh the CloudManager and
NetworkManager in the same worker.

This has other side effects however including making it more difficult
to find a worker by an EMS (e.g. when destroying the EMS) and requires
that the base MiqWorker class do `JSON.parse(self[:queue_name]) rescue
self[:queue_name]`

Another option is to have the child managers report their queue_name for
the refresh operation as the parent manager's queue_name.
@miq-bot
Copy link
Member

miq-bot commented Jul 17, 2020

Checked commit agrare@0c95def with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
2 files checked, 0 offenses detected
Everything looks fine. 🍪

@agrare agrare changed the title [WIP] Delete any worker records that have a JSON queue_name Delete any worker records that have a JSON queue_name Sep 22, 2020
@miq-bot miq-bot removed the wip label Sep 22, 2020
@gtanzillo gtanzillo added the bug label Oct 1, 2020
@Fryguy Fryguy merged commit 9ef5d38 into ManageIQ:master Oct 2, 2020
@Fryguy Fryguy self-assigned this Oct 2, 2020
@agrare agrare deleted the delete_worker_records_with_json_queue_names branch October 2, 2020 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants