##// END OF EJS Templates
fix initial context dict for batch launchers
MinRK -
Show More
@@ -870,6 +870,14 b' class BatchSystemLauncher(BaseLauncher):'
870 batch_file = Unicode(u'')
870 batch_file = Unicode(u'')
871 # the format dict used with batch_template:
871 # the format dict used with batch_template:
872 context = Dict()
872 context = Dict()
873 def _context_default(self):
874 """load the default context with the default values for the basic keys
875
876 because the _trait_changed methods only load the context if they
877 are set to something other than the default value.
878 """
879 return dict(n=1, queue=u'', profile_dir=u'', cluster_id=u'')
880
873 # the Formatter instance for rendering the templates:
881 # the Formatter instance for rendering the templates:
874 formatter = Instance(EvalFormatter, (), {})
882 formatter = Instance(EvalFormatter, (), {})
875
883
@@ -1018,7 +1026,7 b' class SGEControllerLauncher(SGELauncher, BatchClusterAppMixin):'
1018
1026
1019 def start(self):
1027 def start(self):
1020 """Start the controller by profile or profile_dir."""
1028 """Start the controller by profile or profile_dir."""
1021 self.log.info("Starting PBSControllerLauncher: %r" % self.args)
1029 self.log.info("Starting SGEControllerLauncher: %r" % self.args)
1022 return super(SGEControllerLauncher, self).start(1)
1030 return super(SGEControllerLauncher, self).start(1)
1023
1031
1024 class SGEEngineSetLauncher(SGELauncher, BatchClusterAppMixin):
1032 class SGEEngineSetLauncher(SGELauncher, BatchClusterAppMixin):
General Comments 0
You need to be logged in to leave comments. Login now