diff --git a/services/webapp/code/rosetta/core_app/api.py b/services/webapp/code/rosetta/core_app/api.py index 591b7b31e295efead33b71bee8eb73ba980cb5ee..3add43ad8f650f02c643baeef4341c07e4ed9d77 100644 --- a/services/webapp/code/rosetta/core_app/api.py +++ b/services/webapp/code/rosetta/core_app/api.py @@ -373,11 +373,6 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI): # Get computing host computing_host = computing.conf.get('host') - - # Trick for handling Slurm.. TODO: fix me! - if not computing_host: - computing_host = computing.conf.get('master') - computing_user = computing.conf.get('user') if not computing_host: @@ -405,11 +400,6 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI): # Get computing host computing_host = computing.conf.get('host') - - # Trick for handling Slurm.. TODO: fix me! - if not computing_host: - computing_host = computing.conf.get('master') - computing_user = computing.conf.get('user') if not computing_host: diff --git a/services/webapp/code/rosetta/core_app/computing_managers.py b/services/webapp/code/rosetta/core_app/computing_managers.py index 08cd271d37dc19fa660b9efb6ee75383c4019c84..a04360124b7481bf86a756fa3a2e9279222b2969 100644 --- a/services/webapp/code/rosetta/core_app/computing_managers.py +++ b/services/webapp/code/rosetta/core_app/computing_managers.py @@ -323,7 +323,7 @@ class SlurmSSHClusterComputingManager(ClusterComputingManager, SSHComputingManag logger.debug('Starting a remote task "{}"'.format(self.computing)) # Get computing host - host = self.computing.conf.get('master') + host = self.computing.conf.get('host') user = self.computing.conf.get('user') # Get user keys @@ -448,7 +448,7 @@ class SlurmSSHClusterComputingManager(ClusterComputingManager, SSHComputingManag raise NotImplementedError('Remote tasks not requiring keys are not yet supported') # Get computing host - host = self.computing.conf.get('master') + host = self.computing.conf.get('host') user = self.computing.conf.get('user') # Stop the task remotely @@ -471,7 +471,7 @@ class SlurmSSHClusterComputingManager(ClusterComputingManager, SSHComputingManag raise NotImplementedError('Remote tasks not requiring keys are not yet supported') # Get computing host - host = self.computing.conf.get('master') + host = self.computing.conf.get('host') user = self.computing.conf.get('user') # View log remotely diff --git a/services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py b/services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py index 3d74c37525d72f5e5e6724031f69302a61381ab9..8cfdeb57366b31c9b3f5c68b9aa05ffc4592a17e 100644 --- a/services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py +++ b/services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py @@ -259,7 +259,7 @@ class Command(BaseCommand): # Create demo slurm sys computing conf ComputingSysConf.objects.create(computing = demo_slurm_computing, - data = {'master': 'slurmclustermaster-main', 'default_partition': 'partition1', + data = {'host': 'slurmclustermaster-main', 'default_partition': 'partition1', 'binds': '/shared/data/users:/shared/data/users,/shared/scratch:/shared/scratch'}) # Create demo slurm user computing conf