Ejemplo n.º 1
0
 def save_execution_plan(feature_id):
     feature = Feature.objects.get(pk=feature_id)
     if feature.executionLock:
         return "execution already started"
     else:
         feature.lock_feature()
         execution = Execution()
         workspace = WorkSpace.objects.get(pk=feature.workspace)
         execution.fill(workspace, "planed", "hardcode-executor")
         execution.save()
         return "ok"