mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add timeout information into async failure message
Add some extra information to an async failure message to reflect the actually timeout value of the failure. Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
9f1b75db0e
commit
a6fde8aef9
1 changed files with 1 additions and 1 deletions
|
@ -806,7 +806,7 @@ class TaskExecutor:
|
||||||
|
|
||||||
if int(async_result.get('finished', 0)) != 1:
|
if int(async_result.get('finished', 0)) != 1:
|
||||||
if async_result.get('_ansible_parsed'):
|
if async_result.get('_ansible_parsed'):
|
||||||
return dict(failed=True, msg="async task did not complete within the requested time")
|
return dict(failed=True, msg="async task did not complete within the requested time - %ss" % self._task.async_val)
|
||||||
else:
|
else:
|
||||||
return dict(failed=True, msg="async task produced unparseable results", async_result=async_result)
|
return dict(failed=True, msg="async task produced unparseable results", async_result=async_result)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue