Increase timeout for "oc get pods" when waiting for build
This commit is contained in:
@@ -134,7 +134,7 @@ class Cluster:
|
|||||||
while timeout_sec > 0:
|
while timeout_sec > 0:
|
||||||
# check status
|
# check status
|
||||||
for j in jobs:
|
for j in jobs:
|
||||||
sshSession.command(f'oc get pods | grep {j}', '\$', 10, silent = True)
|
sshSession.command(f'oc get pods | grep {j}', '\$', 30, silent = True)
|
||||||
if sshSession.getBefore().count('Completed') > 0: jobs.remove(j)
|
if sshSession.getBefore().count('Completed') > 0: jobs.remove(j)
|
||||||
if sshSession.getBefore().count('Error') > 0:
|
if sshSession.getBefore().count('Error') > 0:
|
||||||
logging.error(f'error for job {j}: ' + sshSession.getBefore())
|
logging.error(f'error for job {j}: ' + sshSession.getBefore())
|
||||||
|
|||||||
Reference in New Issue
Block a user