From 7f5e8ee3ac5a69f1af1815d221e2f27ea53f410e Mon Sep 17 00:00:00 2001 From: Domingo Manubens-Gil Date: Tue, 24 Jul 2018 16:52:08 +0200 Subject: [PATCH] Adding Slurm support in EcPlatform class. Fixes #344 --- autosubmit/platforms/ecplatform.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autosubmit/platforms/ecplatform.py b/autosubmit/platforms/ecplatform.py index b0f077067..0c59dcdb3 100644 --- a/autosubmit/platforms/ecplatform.py +++ b/autosubmit/platforms/ecplatform.py @@ -25,6 +25,7 @@ from bscearth.utils.log import Log from autosubmit.platforms.headers.ec_header import EcHeader from autosubmit.platforms.headers.ec_cca_header import EcCcaHeader +from autosubmit.platforms.headers.slurm_header import SlurmHeader from autosubmit.platforms.wrappers.wrapper_factory import EcWrapperFactory @@ -44,6 +45,8 @@ class EcPlatform(ParamikoPlatform): self._header = EcCcaHeader() elif scheduler == 'loadleveler': self._header = EcHeader() + elif scheduler == 'slurm': + self._header = SlurmHeader() else: raise ParamikoPlatformException('ecaccess scheduler {0} not supported'.format(scheduler)) self._wrapper = EcWrapperFactory(self) -- GitLab