[Gug-cvs] gug/gug/service/exec exec.py,1.56,1.57
Status: Planning
Brought to you by:
szferi
From: Roczei G. <ro...@us...> - 2007-09-19 14:12:32
|
Update of /cvsroot/gug/gug/gug/service/exec In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv2628 Modified Files: exec.py Log Message: bugfix: error_message=The job's initialdir does not exist: /home/gug/jobroot/2cd8ecd0-f350-4bf4-8ecb-90becc9a67b0/jobdir Index: exec.py =================================================================== RCS file: /cvsroot/gug/gug/gug/service/exec/exec.py,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** exec.py 19 Sep 2007 10:45:21 -0000 1.56 --- exec.py 19 Sep 2007 14:12:24 -0000 1.57 *************** *** 58,63 **** executable = desc['executable'] ! if not path.exists(desc['initialdir']): ! raise InitialDirectoryDoesNotExist, desc['initialdir'] if not str(executable).startswith('/'): --- 58,70 ---- executable = desc['executable'] ! retries = 10 ! while True: ! if not path.exists(desc['initialdir']): ! time.sleep(2) ! retries = retries - 1 ! if retries < 0: ! raise InitialDirectoryDoesNotExist, desc['initialdir'] ! else: ! break if not str(executable).startswith('/'): |