From fff562f7c60bc9b42cc8b3bd535d4c5c42ea5344 Mon Sep 17 00:00:00 2001 From: dbeltran Date: Tue, 20 Oct 2020 21:26:55 +0200 Subject: [PATCH] Revert "Will not hang anymore, however it will be put on unknown status" This reverts commit a92d95d874d439a3213a14767ff507d1ab85c405 --- autosubmit/platforms/paramiko_platform.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autosubmit/platforms/paramiko_platform.py b/autosubmit/platforms/paramiko_platform.py index 7befd2429..96e3d6204 100644 --- a/autosubmit/platforms/paramiko_platform.py +++ b/autosubmit/platforms/paramiko_platform.py @@ -267,11 +267,11 @@ class ParamikoPlatform(Platform): Log.error('check_job() The job id ({0}) is not an integer neither a string.', job_id) # URi: value ? return job_status - while not ( self.send_command(self.get_checkjob_cmd(job_id)) or (self.get_ssh_output() == "") ) and retries > 0: - Log.warning('Retrying check job command: {0}', self.get_checkjob_cmd(job_id)) - Log.error('Can not get job status for job id ({0}), retrying in 5 sec', job_id) + while not (self.send_command(self.get_checkjob_cmd(job_id)) and retries >= 0) or (self.get_ssh_output() == "" and retries >= 0): retries -= 1 - sleep(5) + Log.warning('Retrying check job command: {0}', self.get_checkjob_cmd(job_id)) + Log.error('Can not get job status for job id ({0}), retrying in 10 sec', job_id) + sleep(10) if retries > 0: Log.debug('Successful check job command: {0}', self.get_checkjob_cmd(job_id)) -- GitLab