From 2d61ef4fec3d666be645671895890b7242ef740d Mon Sep 17 00:00:00 2001 From: Theofilos Manitaras Date: Fri, 2 Apr 2021 09:54:33 +0200 Subject: [PATCH 1/2] Fix rescheduling condition for async exec policy --- reframe/frontend/executors/policies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reframe/frontend/executors/policies.py b/reframe/frontend/executors/policies.py index 902ed1a1c2..ae52944c10 100644 --- a/reframe/frontend/executors/policies.py +++ b/reframe/frontend/executors/policies.py @@ -409,7 +409,7 @@ def runcase(self, case): else: self.printer.status('HOLD', task.check.info(), just='right') except TaskExit: - if not task.failed or not task.skipped: + if not (task.failed or task.skipped): with contextlib.suppress(TaskExit): self._reschedule(task) From 5d1626db0de8c9ea3c44c495d89d91f91167c486 Mon Sep 17 00:00:00 2001 From: Theofilos Manitaras Date: Fri, 2 Apr 2021 10:34:28 +0200 Subject: [PATCH 2/2] Address PR comments --- reframe/frontend/executors/policies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reframe/frontend/executors/policies.py b/reframe/frontend/executors/policies.py index ae52944c10..56d0661e19 100644 --- a/reframe/frontend/executors/policies.py +++ b/reframe/frontend/executors/policies.py @@ -409,7 +409,7 @@ def runcase(self, case): else: self.printer.status('HOLD', task.check.info(), just='right') except TaskExit: - if not (task.failed or task.skipped): + if not task.failed and not task.skipped: with contextlib.suppress(TaskExit): self._reschedule(task)