Increase timeout for "oc get pods" when waiting for build

This commit is contained in:
Robert Schmidt
2022-09-29 11:03:17 +02:00
parent a4e4bd1f26
commit eea8395e6a
+1 -1
View File
@@ -134,7 +134,7 @@ class Cluster:
while timeout_sec > 0:
# check status
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('Error') > 0:
logging.error(f'error for job {j}: ' + sshSession.getBefore())