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

Remove process_messages_from_server from MiqWorker #19788

Merged
merged 1 commit into from
Jan 31, 2020

Conversation

agrare
Copy link
Member

@agrare agrare commented Jan 31, 2020

The process_messages_from_server method was last used by the
MiqVimBrokerWorker and can be removed now.

ManageIQ/manageiq-providers-vmware#484

The process_messages_from_server method was last used by the
MiqVimBrokerWorker and can be removed now.
@agrare agrare added the cleanup label Jan 31, 2020
@agrare agrare requested review from carbonin and Fryguy January 31, 2020 15:42
@Fryguy Fryguy merged commit 9ff0a84 into ManageIQ:master Jan 31, 2020
@Fryguy Fryguy self-assigned this Jan 31, 2020
@Fryguy Fryguy added this to the Sprint 129 Ending Feb 3, 2020 milestone Jan 31, 2020
@agrare agrare deleted the remove_process_messages_from_server branch January 31, 2020 16:10
@@ -298,15 +296,6 @@ def heartbeat
do_exit("Error heartbeating because #{err.class.name}: #{err.message}\n#{err.backtrace.join('\n')}", 1)
end

def process_messages_from_server
worker_monitor_drb.register_worker(@worker.pid, @worker.class.name, @worker.queue_name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we may still need this call.

This is what adds the worker info to the server hash for fetching queue messages.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should that live in the queue_worker then? I don't think non-queue workers need that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's part of what it does. This also ensures that the worker is present in the server's worker's cache. It's not all that straight forward unfortunately, but now that the messages bit is gone we can unravel it in a follow-up, but for this first pass I think we should probably just keep this around.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, that means that run_single_worker will still fail if the miq_server isn't running (aka testing out a single worker) can we try to handle that case also?

@carbonin
Copy link
Member

Damn. A bit late.

@carbonin
Copy link
Member

I'll open a separate PR to fix.

agrare added a commit to agrare/manageiq that referenced this pull request Jan 31, 2020
…messages_from_server"

This reverts commit 9ff0a84, reversing
changes made to 3fb04b0.
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.

3 participants