-
Notifications
You must be signed in to change notification settings - Fork 344
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
Executing runner in the background doesn't work properly #99
Comments
@matburt ping ^ |
I'm actually seeing a similar scenario, but it is executing runner in the foreground. In my example:
Similar to what @Ladas was saying:
Not totally sure why it was moved into the failed state, why it stopped running in the middle, or why the return code is |
I bet you both are running into some pretty dumb defaults on my part: https://github.com/ansible/ansible-runner/blob/1.0.5/ansible_runner/runner_config.py#L178-L179 I need to disable those if they aren't provided. I also need to make it more explicitly clear if it's getting killed for this specific reason. in the meantime, you can work around it by overriding these defaults and I'll get this fixed up by tomorrow and spin a 1.0.6 |
@matburt cool, thank you. 👍 Any idea why the |
@matburt hm, ok so doing another test: It seems like But |
@Ladas I'm going to use this issue to fix the idle/job timeout issue. Can you open a new one to track the is-alive/stop/async issue you described here? |
@matburt will do |
timeout handling fixed here: abe1806 |
Hello,
I am trying:
https://ansible-runner.readthedocs.io/en/latest/standalone.html#executing-runner-in-the-background
I have just a simple testing role:
So running this as
ansible-runner start /tmp/ansible-runner20180726-13642-1i9ck95 --json -i result --hosts localhost ...
I can see the python processes running this but:
ansible-runner is-alive /tmp/ansible-runner20180726-13642-1i9ck95 -i result
doesn't do anything, returns blank stringansible-runner stop /tmp/ansible-runner20180726-13642-1i9ck95 -i result
doesn't stop the work, I still see the processes runningstatus
file hasfailed
in it, butrc
file hasNone
The text was updated successfully, but these errors were encountered: