Skip to content

Commit

Permalink
Re #7405 Save separate-job to output file
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Jul 9, 2013
1 parent da14997 commit a69a931
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,19 +491,20 @@ def cluster_submit(self, output_dir, user, pwd, resource=None,

lower_case_instr = self.instrument_name.lower()
job_name_lower = job_name.lower()
_job_name = job_name
if job_name is None or len(job_name)==0:
job_name = lower_case_instr
_job_name = lower_case_instr
elif job_name_lower.find(lower_case_instr)>=0:
job_name = job_name.strip()
_job_name = job_name.strip()
else:
job_name = "%s_%s" % (lower_case_instr, job_name.strip())
_job_name = "%s_%s" % (lower_case_instr, job_name.strip())

# Make sure we have unique job names
if len(scripts)>1:
job_name += "_%s" % i
_job_name += "_%s" % i
# Submit the job
submit_cmd = "SubmitRemoteJob(ComputeResource='%s', " % resource
submit_cmd += "TaskName='%s'," % job_name
submit_cmd += "TaskName='%s'," % _job_name
submit_cmd += "NumNodes=%s, CoresPerNode=%s, " % (nodes, cores_per_node)
submit_cmd += "UserName='%s', GroupName='users', Password='%s', " % (user, pwd)
submit_cmd += "TransactionID='mantid_remote', "
Expand Down

0 comments on commit a69a931

Please sign in to comment.