allow tasks without timeout
This commit is contained in:
+2
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user