##// END OF EJS Templates
Move a few PBS launcher messages from info to debug
MinRK -
Show More
@@ -738,7 +738,7 b' class WindowsHPCLauncher(BaseLauncher):'
738 738 else:
739 739 raise LauncherError("Job id couldn't be determined: %s" % output)
740 740 self.job_id = job_id
741 self.log.info('Job started with job id: %r' % job_id)
741 self.log.info('Job started with id: %r', job_id)
742 742 return job_id
743 743
744 744 def start(self, n):
@@ -799,7 +799,7 b' class WindowsHPCControllerLauncher(WindowsHPCLauncher, ClusterAppMixin):'
799 799 t.controller_args.extend(self.controller_args)
800 800 job.add_task(t)
801 801
802 self.log.info("Writing job description file: %s" % self.job_file)
802 self.log.debug("Writing job description file: %s", self.job_file)
803 803 job.write(self.job_file)
804 804
805 805 @property
@@ -832,7 +832,7 b' class WindowsHPCEngineSetLauncher(WindowsHPCLauncher, ClusterAppMixin):'
832 832 t.engine_args.extend(self.engine_args)
833 833 job.add_task(t)
834 834
835 self.log.info("Writing job description file: %s" % self.job_file)
835 self.log.debug("Writing job description file: %s", self.job_file)
836 836 job.write(self.job_file)
837 837
838 838 @property
@@ -941,7 +941,7 b' class BatchSystemLauncher(BaseLauncher):'
941 941 else:
942 942 raise LauncherError("Job id couldn't be determined: %s" % output)
943 943 self.job_id = job_id
944 self.log.info('Job submitted with job id: %r' % job_id)
944 self.log.info('Job submitted with job id: %r', job_id)
945 945 return job_id
946 946
947 947 def write_batch_script(self, n):
@@ -961,19 +961,19 b' class BatchSystemLauncher(BaseLauncher):'
961 961 regex = re.compile(self.job_array_regexp)
962 962 # print regex.search(self.batch_template)
963 963 if not regex.search(self.batch_template):
964 self.log.info("adding job array settings to batch script")
964 self.log.debug("adding job array settings to batch script")
965 965 firstline, rest = self.batch_template.split('\n',1)
966 966 self.batch_template = u'\n'.join([firstline, self.job_array_template, rest])
967 967
968 968 regex = re.compile(self.queue_regexp)
969 969 # print regex.search(self.batch_template)
970 970 if self.queue and not regex.search(self.batch_template):
971 self.log.info("adding PBS queue settings to batch script")
971 self.log.debug("adding PBS queue settings to batch script")
972 972 firstline, rest = self.batch_template.split('\n',1)
973 973 self.batch_template = u'\n'.join([firstline, self.queue_template, rest])
974 974
975 975 script_as_string = self.formatter.format(self.batch_template, **self.context)
976 self.log.info('Writing batch script: %s', self.batch_file)
976 self.log.debug('Writing batch script: %s', self.batch_file)
977 977
978 978 with open(self.batch_file, 'w') as f:
979 979 f.write(script_as_string)
General Comments 0
You need to be logged in to leave comments. Login now