send.py (1881:fc205a7edd58) | send.py (1908:73342b7d6f83) |
---|---|
1#!/usr/bin/env python 2# Copyright (c) 2005 The Regents of The University of Michigan 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 252 unchanged lines hidden (view full) --- 261 262 if not onlyecho: 263 ec = qsub.do() 264 if ec == 0: 265 jobid = qsub.result 266 print 'PBS Jobid: %s' % jobid 267 namehack.setname(jobid, job.name) 268 queued = date() | 1#!/usr/bin/env python 2# Copyright (c) 2005 The Regents of The University of Michigan 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 252 unchanged lines hidden (view full) --- 261 262 if not onlyecho: 263 ec = qsub.do() 264 if ec == 0: 265 jobid = qsub.result 266 print 'PBS Jobid: %s' % jobid 267 namehack.setname(jobid, job.name) 268 queued = date() |
269 jobdir.echofile('.pbs_jobid', jobid) 270 jobdir.echofile('.pbs_jobname', job.name) |
|
269 jobdir.echofile('.queued', queued) 270 jobdir.setstatus('queued on %s' % queued) 271 else: 272 print 'PBS Failed' | 271 jobdir.echofile('.queued', queued) 272 jobdir.setstatus('queued on %s' % queued) 273 else: 274 print 'PBS Failed' |