Author: eallen
Date: 2009-08-26 09:13:33 -0400 (Wed, 26 Aug 2009)
New Revision: 3591
Modified:
mgmt/trunk/cumin/python/cumin/model.py
Log:
Don't wait so long for failed GetAd and GetJobs calls
Modified: mgmt/trunk/cumin/python/cumin/model.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/model.py 2009-08-25 23:01:05 UTC (rev 3590)
+++ mgmt/trunk/cumin/python/cumin/model.py 2009-08-26 13:13:33 UTC (rev 3591)
@@ -2233,7 +2233,7 @@
default = {'JobAd': {"":{"VALUE":"",
"TYPE":0}}}
qmf = QMFCaller(default)
scheduler.GetAd(self.mint.model, qmf.get_completion(), job, None)
- wait(qmf.done, timeout=10)
+ wait(qmf.done, timeout=5)
return qmf.data['JobAd']
@@ -2243,7 +2243,7 @@
default = {'Jobs': {}}
qmf = QMFCaller(default)
scheduler.GetJobs(self.mint.model, qmf.get_completion(), submission, None)
- wait(qmf.done, timeout=10)
+ wait(qmf.done, timeout=5)
return qmf.data['Jobs']