X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fexecution%2Frunner.py;h=52b4bde22395e3c2e0879e029ac28dff74e5ad8c;hb=d1c731d0fbf6c0b8a21607795fb1101a46a2518d;hp=75e766f4273af0995d790d8f38f99c43e693c573;hpb=bac63fdc5983e2ade1902f711c1e7899d82ca4ae;p=nepi.git diff --git a/src/nepi/execution/runner.py b/src/nepi/execution/runner.py index 75e766f4..52b4bde2 100644 --- a/src/nepi/execution/runner.py +++ b/src/nepi/execution/runner.py @@ -17,7 +17,7 @@ # # Author: Alina Quereilhac -from nepi.execution.ec import ExperimentController +from nepi.execution.ec import ExperimentController, ECState import math import numpy @@ -140,12 +140,15 @@ class ExperimentRunner(object): ec = ExperimentController.load(filepath) ec.deploy() - + ec.wait_finished(wait_guids) time.sleep(wait_time) ec.release() + if ec.state == ECState.FAILED: + raise RuntimeError, "Experiment failed" + return ec