Commit fc130a90 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

hardcoded the job name because the queue now returned something strange as sys.argv[0]

parent 3fe2b120
......@@ -585,15 +585,21 @@ class CycleControl(dict):
"""
import subprocess
import os
from string import join
DaPlatForm = self.DaPlatForm
if self['time.start'] < self['time.finish']:
jobparams = {'jobname':'das'}
template = DaPlatForm.GetJobTemplate(jobparams)
jobcommand = '%s rc=%s'% (sys.argv[0], self['da.restart.fname'], )
dummy = os.chdir(self['dir.da_submit'] )
jobid = DaPlatForm.SubmitJob(jobcommand)
template += 'cd %s\n'% self['dir.da_submit']
#template += '%s rc=%s %s' % (sys.argv[0],self['jobrcfilename'],join(self.opts,''),)
template += '%s rc=%s %s' % ('dasjet.py',self['jobrcfilename'],join(self.opts,''),)
jobfile = DaPlatForm.WriteJob(self,template,self['time.start'].strftime('%Y%m%d') )
jobid = DaPlatForm.SubmitJob(jobfile)
else:
logging.info('Final date reached, no new cycle started')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment