Skip to content

Commit 8f99238

Browse files
committed
rename values_len to dictlist_len
1 parent 63e58d0 commit 8f99238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reframe/frontend/executors/policies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
TaskEventListener, ABORT_REASONS)
1919

2020

21-
def values_len(d):
21+
def dictlist_len(d):
2222
return functools.reduce(lambda l, r: l + len(r), d.values(), 0)
2323

2424

@@ -422,7 +422,7 @@ def exit(self):
422422
num_polls = 0
423423
t_start = datetime.now()
424424
while (self._running_tasks or self._waiting_tasks or
425-
self._completed_tasks or values_len(self._ready_tasks)):
425+
self._completed_tasks or dictlist_len(self._ready_tasks)):
426426
getlogger().debug('running tasks: %s' % len(self._running_tasks))
427427
num_polls += len(self._running_tasks)
428428
try:

0 commit comments

Comments
 (0)