mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Merge pull request #6639 from ryanpetrello/isolated-rsync-race
fix a race condition in isolated stdout processing
This commit is contained in:
commit
8ae8e0bf2d
@ -8,6 +8,10 @@
|
||||
|
||||
tasks:
|
||||
|
||||
- shell: "tower-expect is-alive {{src}}"
|
||||
register: is_alive
|
||||
ignore_errors: true
|
||||
|
||||
- name: copy artifacts from the isolated host
|
||||
synchronize:
|
||||
src: "{{src}}/artifacts/"
|
||||
@ -15,6 +19,6 @@
|
||||
mode: pull
|
||||
recursive: yes
|
||||
|
||||
- shell: "tower-expect is-alive {{src}}"
|
||||
register: is_alive
|
||||
failed_when: "is_alive.rc == 0"
|
||||
- fail:
|
||||
msg: "isolated task is still running"
|
||||
when: "is_alive.rc == 0"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user