Skip to content

Commit 4548ea1

Browse files
author
Vasileios Karakasis
authored
Merge branch 'master' into feat/json-output
2 parents c5116f0 + 69afc67 commit 4548ea1

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

config/cscs-ci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
'hostnames': [
5656
'dom'
5757
],
58-
'modules_system': 'tmod',
58+
'modules_system': 'tmod4',
5959
'resourcesdir': '/apps/common/UES/reframe/resources',
6060
'partitions': [
6161
{

config/cscs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
'hostnames': [
286286
'dom'
287287
],
288-
'modules_system': 'tmod',
288+
'modules_system': 'tmod4',
289289
'resourcesdir': '/apps/common/UES/reframe/resources',
290290
'partitions': [
291291
{
@@ -317,7 +317,7 @@
317317
{
318318
'type': 'Singularity',
319319
'modules': [
320-
'singularity'
320+
'singularity/3.5.3'
321321
]
322322
}
323323
],
@@ -358,7 +358,7 @@
358358
{
359359
'type': 'Singularity',
360360
'modules': [
361-
'singularity'
361+
'singularity/3.5.3'
362362
]
363363
}
364364
],

reframe/frontend/executors/policies.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# SPDX-License-Identifier: BSD-3-Clause
55

66
import contextlib
7+
import functools
78
import itertools
89
import math
910
import sys
@@ -17,6 +18,10 @@
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+
2025
def _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:

0 commit comments

Comments
 (0)