diff --git a/autosubmit/platforms/paramiko_platform.py b/autosubmit/platforms/paramiko_platform.py index 7befd2429d6a75cac0ad4a1674a19cdecae6a071..96e3d6204c2f9a283a2ded6616e2215549b2ed53 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))