Skip to content
Snippets Groups Projects
Commit f901bee0 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

started to implement job strategy for maunaloa

parent 452c22d3
No related branches found
No related tags found
No related merge requests found
...@@ -25,5 +25,17 @@ class MaunaloaPlatForm(PlatForm): ...@@ -25,5 +25,17 @@ class MaunaloaPlatForm(PlatForm):
msg2 = '%s version: %s'%(self.Identifier,self.Version) ; logging.debug(msg2) msg2 = '%s version: %s'%(self.Identifier,self.Version) ; logging.debug(msg2)
def GetMyID(self):
return os.getpid()
def UnsuspendCommand(self):
return 'qmod -usj %s'%(self.GetMyID())
def SuspendJob(self):
""" Method suspends the running job"""
cmd = ['wait','-sj',self.GetMyID()]
output = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0] ; logging.info(output)
if __name__ == "__main__": if __name__ == "__main__":
pass pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment