Fix timeout in wait_job_end()

This commit is contained in:
Robert Schmidt
2022-09-18 22:21:35 +02:00
parent edfb7aca1d
commit ca5a6deb9d
+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}', '\$', 5, silent = True)
sshSession.command(f'oc get pods | grep {j}', '\$', 10, 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())