Commit 097ed771 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

added basic suspend and resume commands, to be edited...

parent f901bee0
......@@ -60,6 +60,21 @@ class PlatForm(object):
return template
def GetMyID(self):
return os.environ['JOB_ID']
def UnsuspendCommand(self):
return 'qmod -usj %s'%(self.GetMyID())
def SuspendJob(self):
""" Method suspends the running job"""
cmd = ['qmod','-sj',self.GetMyID()]
output = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0] ; logging.info(output)
def WriteJob(self,DaCycle,template, jobid):
""" This method writes a jobfile to the exec dir"""
#
......
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