-
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
Add support for using run_role_async #18108
Add support for using run_role_async #18108
Conversation
@miq-bot add_label wip |
alias finish process_finished | ||
alias abort_job process_abort | ||
alias cancel process_cancel | ||
alias error process_error | ||
|
||
def fail_unimplamented | ||
raise "this is an abstract class, use a subclass that implaments a 'start' method" | ||
end |
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 slick 👍
|
||
def load_transitions | ||
super.tap do |transactions| | ||
transactions.merge( |
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.
should this be merge!
?
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 nevermind I think this is 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.
You were right! Fixed.
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.
You were right! Fixed.
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.
You are right! Thank you!
a4b7d0a
to
07ed02e
Compare
|
||
def load_transitions | ||
super.tap do |transactions| | ||
transactions.merge!( |
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.
You can probably just do super.merge(...)
(untested)
142f0f3
to
14f164a
Compare
Add the option to use the run_role_async using AnsibleWorkflow
14f164a
to
7af794d
Compare
Checked commit borod108@7af794d with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 app/models/manageiq/providers/ansible_runner_workflow.rb
|
@miq-bot remove_label wip |
@agrare what do you think? |
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.
LGTM
@miq-bot add-label hammer/yes |
Add support for using run_role_async (cherry picked from commit 724d1e7)
Hammer backport details:
|
Add the option to use the run_role_async using AnsibleWorkflow
Required for implementing: https://bugzilla.redhat.com/show_bug.cgi?id=1644605