started = date()
jobdir.echofile('.running', started)
jobdir.rmfile('.queued')
- jobdir.echofile('.pbs_jobid', pbs_jobid)
- jobdir.echofile('.pbs_jobname', pbs_jobid)
jobdir.echofile('.host', host)
jobdir.setstatus('running on %s on %s' % (host, started))
signal.signal(signal.SIGINT, handler)
signal.signal(signal.SIGQUIT, handler)
signal.signal(signal.SIGTERM, handler)
- signal.signal(signal.SIGSTOP, handler)
signal.signal(signal.SIGCONT, handler)
signal.signal(signal.SIGUSR1, handler)
signal.signal(signal.SIGUSR2, handler)
print 'PBS Jobid: %s' % jobid
namehack.setname(jobid, job.name)
queued = date()
+ jobdir.echofile('.pbs_jobid', jobid)
+ jobdir.echofile('.pbs_jobname', job.name)
jobdir.echofile('.queued', queued)
jobdir.setstatus('queued on %s' % queued)
else: