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

Update the Ansible::Runner wait_for timeout #20674

Merged
merged 1 commit into from
Oct 9, 2020

Conversation

agrare
Copy link
Member

@agrare agrare commented Oct 8, 2020

Drop the wait_for timeout to 10 seconds to match what has been merged to jansa in #20670

lib/ansible/runner.rb Outdated Show resolved Hide resolved
@agrare agrare force-pushed the update_runner_wait_for_timeout branch 2 times, most recently from 3c954ed to bf0a2d6 Compare October 8, 2020 16:45
@gtanzillo gtanzillo added the bug label Oct 8, 2020
@@ -218,7 +218,7 @@ def run_via_cli(hosts, credentials, env_vars, extra_vars, tags: nil, ansible_run
fetch_galaxy_roles(playbook_or_role_args)

result = wait_for(pid_file(base_dir)) do
AwesomeSpawn.run("ansible-runner", :env => env_vars_hash, :params => params)
AwesomeSpawn.run!("ansible-runner", :env => env_vars_hash, :params => params)
Copy link
Member

Choose a reason for hiding this comment

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

If i recall, this didn't use ! on purpose because of some weird cases where it returns 1 as a "good" return value.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm okay, let me just update the timeout to match jansa and we can see if there's a better way to do this in a follow-up

Drop the wait_for timeout to 10 seconds
@agrare agrare force-pushed the update_runner_wait_for_timeout branch from bf0a2d6 to d071f33 Compare October 8, 2020 19:21
@miq-bot
Copy link
Member

miq-bot commented Oct 8, 2020

Checked commit agrare@d071f33 with ruby 2.6.3, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 👍

@Fryguy Fryguy merged commit aa3b7e8 into ManageIQ:master Oct 9, 2020
@agrare agrare deleted the update_runner_wait_for_timeout branch October 9, 2020 14:49
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.

5 participants