From 64578b37e04c74dcd000af940670f391980d2736 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Mon, 23 May 2016 10:34:45 +0200 Subject: [PATCH] [experiments] Fix cancelled experiment refreshing bug --- beat/web/experiments/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beat/web/experiments/models.py b/beat/web/experiments/models.py index b4279b74e..2a6d9a6eb 100644 --- a/beat/web/experiments/models.py +++ b/beat/web/experiments/models.py @@ -769,7 +769,10 @@ class Experiment(Shareable): # Process main state and state from job results if Block.FAILED in block_statuses or Block.CANCELLED in block_statuses: - self.status = Experiment.FAILED + if Block.PROCESSING in block_statuses: + self.status = Experiment.CANCELING + else: + self.status = Experiment.FAILED elif (Block.PROCESSING in block_statuses) or \ ((Block.NOT_CACHED in block_statuses or \ -- GitLab