don't write the pbs jobid here, do it in send.py so we know
authorNathan Binkert <binkertn@umich.edu>
Wed, 12 Oct 2005 17:01:55 +0000 (13:01 -0400)
committerNathan Binkert <binkertn@umich.edu>
Wed, 12 Oct 2005 17:01:55 +0000 (13:01 -0400)
what it is sooner
Don't handle sigstop since you're not allowed to.

util/pbs/send.py:
    write the pbs jobid here in send.py so we know what it is sooner

--HG--
extra : convert_revision : 93292d046cb4b628031e0e57e39eb4470b598ed8

util/pbs/job.py
util/pbs/send.py

index e2636c111043ab186d0c82025cff7dd5cc6d0272..fb375cf5d9f8b491bfe3d2d91407e210c4b5c13f 100755 (executable)
@@ -168,8 +168,6 @@ if __name__ == '__main__':
     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))
@@ -219,7 +217,6 @@ if __name__ == '__main__':
     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)
index c66fb1c0569e7b2168a2e2422b285905b2e2ae48..51eb8425e354a27dcb81f5b02c889b37cc5791a4 100755 (executable)
@@ -266,6 +266,8 @@ for job in joblist:
             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: