diff --git a/VERSION b/VERSION index 2536c7c28fac3720d93ff42ae9c83c50f6f2a603..b3db1e6204a321479cf888d298bed531f2315a3d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.104 +4.0.105 diff --git a/autosubmit/autosubmit.py b/autosubmit/autosubmit.py index 0d76c7d187679697c1ed128c268b286f4a105708..89f4d7bbf74b4527de656f977459580d23647707 100644 --- a/autosubmit/autosubmit.py +++ b/autosubmit/autosubmit.py @@ -4052,7 +4052,7 @@ class Autosubmit: shutil.copyfile(template_path, backup_path) template_content = open(template_path, 'r', encoding=locale.getlocale()[1]).read() # Look for %_% - variables = re.findall('%(? -1: - template_content = re.sub('(?m)^( )*(EXPID:)( )*[a-zA-Z0-9]*(\n)*', "", template_content, flags=re.I) + template_content = re.sub('(?m)^( )*(EXPID:)( )*[a-zA-Z0-9._-]*(\n)*', "", template_content, flags=re.I) # Write final result open(template_path, "w").write(template_content) diff --git a/autosubmit/job/job.py b/autosubmit/job/job.py index c16924e1f5c0ac8a2e971e0b60dcb1f6fd5803a3..95a4e44b10b71c1e7668bc95b254a9a599cb178b 100644 --- a/autosubmit/job/job.py +++ b/autosubmit/job/job.py @@ -1948,7 +1948,7 @@ class Job(object): #TODO regresion test for additional_file, additional_template_content in zip(self.additional_files, additional_templates): # append to a list all names don't matter the location, inside additional_template_content that starts with % and ends with % - placeholders_inside_additional_template = re.findall('%(? 0: + try: + output = subprocess.check_output(command, shell=True).decode(lang) + success = True + except Exception as e: + err_message = str(e) + success = False + retries = retries - 1 + sleep(1) + if not success: + raise AutosubmitError(f'Could not execute command {command} on {self.host}',7500, str(err_message)) self._ssh_output = output return True diff --git a/autosubmit/platforms/paramiko_platform.py b/autosubmit/platforms/paramiko_platform.py index 58582bc0b9e71963111afe547c5ef8ced1975ea9..a759f6d5472c9f79f1e77545f7130ae4d14de0dc 100644 --- a/autosubmit/platforms/paramiko_platform.py +++ b/autosubmit/platforms/paramiko_platform.py @@ -513,6 +513,7 @@ class ParamikoPlatform(Platform): x11 = job.x11 cmd = self.get_submit_cmd(script_name, job, hold=hold, export=export) + Log.debug(f"Submitting job with the command: {cmd}") if cmd is None: return None if self.send_command(cmd,x11=x11): diff --git a/requeriments.txt b/requeriments.txt index 11bef0c11f2bd6ade5d85a7442c6a12905ed3d46..47fd8ccfb185ff8ca9792bfbdd8e67931e44b76e 100644 --- a/requeriments.txt +++ b/requeriments.txt @@ -1,7 +1,7 @@ zipp>=3.1.0 setuptools>=60.8.2 cython -autosubmitconfigparser==1.0.50 +autosubmitconfigparser==1.0.53 paramiko>=2.9.2 bcrypt>=3.2 PyNaCl>=1.5.0