-
Notifications
You must be signed in to change notification settings - Fork 897
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
Ansible runner async method #17763
Ansible runner async method #17763
Conversation
f62d646
to
681cd14
Compare
681cd14
to
4c50f10
Compare
0398e04
to
99c2851
Compare
@agrare ok, so this is ready for testing: Your workflow would be:
if Once it is not running, fetch the you will fetch the response with: For testing, you can use a simple playbook:
Just don't do sleep bigger than 120s, since that will fail now ansible/ansible-runner#99 (comment) And the |
lib/ansible/runner/response_async.rb
Outdated
# @param base_dir [String] Base directory containing Runner metadata (project, inventory, etc). ansible-runner | ||
# refers to it as 'private_data_dir' | ||
# @param ident [String] An identifier that will be used when generating the artifacts directory and can be used to | ||
# uniquely identify a playbook run. sWe use unique base dir per run, so this idrntifier can be static for |
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.
couple of typos, swe
and idrntifier
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 just those typos
Add a possibility to start async ansible-runner
Make Response object work also for the async run
Implement stop and running? methods with proper response and cleanup
Add missing YARD docs
Fix YARD typos
0a01bef
to
c6571ea
Compare
Checked commits Ladas/manageiq@a12d80d~...c6571ea with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 lib/ansible/runner/response.rb
|
Make it possible to run ansible-runner on the background, so it doesn't block the generic worker.