mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 01:17:35 -02:30
update isolated task execution for ansible-runner
This commit is contained in:
committed by
chris meyers
parent
8fb65b40de
commit
602ef9750f
@@ -50,7 +50,7 @@ def main():
|
||||
)
|
||||
try:
|
||||
version = subprocess.check_output(
|
||||
['awx-expect', '--version'],
|
||||
['ansible-runner', '--version'],
|
||||
stderr=subprocess.STDOUT
|
||||
).strip()
|
||||
except subprocess.CalledProcessError as e:
|
||||
|
||||
@@ -51,7 +51,7 @@ def main():
|
||||
try:
|
||||
re_match = re.match(r'\/tmp\/ansible_awx_\d+_.+', path)
|
||||
if re_match is not None:
|
||||
if subprocess.check_call(['awx-expect', 'is-alive', path]) == 0:
|
||||
if subprocess.check_call(['ansible-runner', 'is-alive', path]) == 0:
|
||||
continue
|
||||
else:
|
||||
module.debug('Deleting path {} its job has completed.'.format(path))
|
||||
|
||||
Reference in New Issue
Block a user