allow tasks without timeout

This commit is contained in:
mdipierro committed 2012-08-30 08:05:09 -05:00
1 parent 1ebc4dfad2
commit be7390424a
4 files changed
+92 -3

No files matched your search

+2 -1
View File
@@ -262,7 +262,8 @@ class MetaScheduler(threading.Thread):
start = time.time()
while p.is_alive() and (time.time()-start < task.timeout):
while p.is_alive() and (
not task.timeout or time.time()-start < task.timeout):
if tout:
try:
logging.debug(' partial output saved')