Skip to content
Snippets Groups Projects
Commit ab032a3d authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[experiments] Only allow resetting experiments that are done

parent cbb01415
No related branches found
No related tags found
1 merge request!194Scheduler
......@@ -664,6 +664,8 @@ class Experiment(Shareable):
def reset(self):
"""Resets an experiment so it can be run again"""
if not self.done(): return #can only reset experiments which are done
self.blocks.update(
status=Block.NOT_CACHED,
start_date=None,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment