mirror of
https://github.com/ansible/awx.git
synced 2026-03-24 12:25:01 -02:30
Merge pull request #4661 from ansible/apurva_wait_for_job_fix
awxkit: don't suppress error when job does not exist Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
from awxkit.api.pages import base
|
from awxkit.api.pages import base
|
||||||
from awxkit.api.resources import resources
|
from awxkit.api.resources import resources
|
||||||
from awxkit.utils import poll_until, seconds_since_date_string, suppress
|
from awxkit.utils import poll_until, seconds_since_date_string
|
||||||
from awxkit.exceptions import WaitUntilTimeout
|
|
||||||
from . import page
|
from . import page
|
||||||
|
|
||||||
|
|
||||||
@@ -11,8 +10,7 @@ class WorkflowJobNode(base.Base):
|
|||||||
"""Waits until node's job exists"""
|
"""Waits until node's job exists"""
|
||||||
adjusted_timeout = timeout - seconds_since_date_string(self.created)
|
adjusted_timeout = timeout - seconds_since_date_string(self.created)
|
||||||
|
|
||||||
with suppress(WaitUntilTimeout):
|
poll_until(self.job_exists, interval=interval, timeout=adjusted_timeout, **kw)
|
||||||
poll_until(self.job_exists, interval=interval, timeout=adjusted_timeout, **kw)
|
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user