diff --git a/services/webapp/code/rosetta/core_app/computing_managers.py b/services/webapp/code/rosetta/core_app/computing_managers.py index e130bb85c3c9ae2d1b1b72390fde8ee39a87836f..1e4dfa5de7138b5031558d369b46a3d4a362752b 100644 --- a/services/webapp/code/rosetta/core_app/computing_managers.py +++ b/services/webapp/code/rosetta/core_app/computing_managers.py @@ -242,7 +242,7 @@ class SSHSingleNodeComputingManager(SingleNodeComputingManager, SSHComputingMana else: - raise NotImplementedError('Container {} not supported'.format(task.container.type)) + raise NotImplementedError('Container runtime {} not supported'.format(self.computing.default_container_runtime)) out = os_shell(run_command, capture=True) if out.exit_code != 0: @@ -380,7 +380,7 @@ class SlurmSSHClusterComputingManager(ClusterComputingManager, SSHComputingManag run_command+='docker://{}/{}:{} &> \$HOME/{}.log\\" > \$HOME/{}.sh && sbatch {} \$HOME/{}.sh"\''.format(task.container.registry, task.container.image_name, task.container.image_tag, task.uuid, task.uuid, sbatch_args, task.uuid) else: - raise NotImplementedError('Default container runtime "{}" not supported'.format(task.computing.default_container_runtime)) + raise NotImplementedError('Container runtime {} not supported'.format(task.computing.default_container_runtime)) out = os_shell(run_command, capture=True) if out.exit_code != 0: diff --git a/services/webapp/code/rosetta/core_app/models.py b/services/webapp/code/rosetta/core_app/models.py index e772eea43853f599a29c23658e436312d2a2fcb6..968a30340995c963915e9137ce316dc384a0d3b0 100644 --- a/services/webapp/code/rosetta/core_app/models.py +++ b/services/webapp/code/rosetta/core_app/models.py @@ -228,7 +228,7 @@ class Computing(models.Model): @property def default_container_runtime(self): - return str(self.container_runtimes).split(',')[0] + return self.container_runtimes[0] #=======================