allow tasks without timeout
This commit is contained in:
1 parent
1ebc4dfad2
commit
be7390424a
4 files changed
+92
-3
No files matched your search
+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