-
Notifications
You must be signed in to change notification settings - Fork 898
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
v2v Throttling #18415
v2v Throttling #18415
Conversation
2cda9bc
to
92eb47c
Compare
This pull request is not mergeable. Please rebase and repush. |
1febb82
to
fa73562
Compare
3af9f97
to
371e584
Compare
d543ac8
to
7fc493c
Compare
9626b5a
to
f9010f9
Compare
end | ||
|
||
def migration_task | ||
@migration_task ||= target_entity |
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.
The target_entity is known at initialization time right? This looks like it could just be an attr_reader
that is set in initialize
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.
This is caching the query result of target_entity
. Shall I rely on rails to take care of caching, and just do a alias_method :migration_task, :target_entity
?
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.
Oh no problem with the caching, I was saying in initialize
you could do @migration_task = target_entity
and make migration_task
an attr_reader
which is basically what this duplicates the behavior of.
Checked commits jameswnl/manageiq@4709864~...0b1a8c5 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 app/models/infra_conversion_job.rb
|
@miq-bot add_lable hammer/yes |
@jameswnl unrecognized command 'add_lable', ignoring... Accepted commands are: add_label, add_reviewer, assign, close_issue, move_issue, remove_label, rm_label, set_milestone |
@miq-bot add_label hammer/yes |
v2v Throttling (cherry picked from commit e3e7c38) https://bugzilla.redhat.com/show_bug.cgi?id=1686877
Hammer backport details:
|
Moving v2v throttling our of automate
These slides may help understand the changes
Related to ManageIQ/manageiq-content#504 (Corresponding Automate code being replaced/updated)
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1686155