Commit ca5a6deb authored by Robert Schmidt's avatar Robert Schmidt

Fix timeout in wait_job_end()

parent edfb7aca
...@@ -134,7 +134,7 @@ class Cluster: ...@@ -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}', '\$', 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('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())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment