File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
reframe/frontend/executors Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 44# SPDX-License-Identifier: BSD-3-Clause
55
66import contextlib
7+ import functools
78import itertools
89import math
910import sys
1718 TaskEventListener , ABORT_REASONS )
1819
1920
21+ def dictlist_len (d ):
22+ return functools .reduce (lambda l , r : l + len (r ), d .values (), 0 )
23+
24+
2025def _cleanup_all (tasks , * args , ** kwargs ):
2126 for task in tasks :
2227 if task .ref_count == 0 :
@@ -416,7 +421,8 @@ def exit(self):
416421 pollrate = PollRateFunction (0.2 , 60 )
417422 num_polls = 0
418423 t_start = datetime .now ()
419- while (self ._running_tasks or self ._waiting_tasks ):
424+ while (self ._running_tasks or self ._waiting_tasks or
425+ self ._completed_tasks or dictlist_len (self ._ready_tasks )):
420426 getlogger ().debug ('running tasks: %s' % len (self ._running_tasks ))
421427 num_polls += len (self ._running_tasks )
422428 try :
You can’t perform that action at this time.
0 commit comments