

def roll_back(self, expr_id):
    '\n        roll back when exception occurred\n        :param expr_id: experiment id\n        '
    self.log.debug(('Starting rollback experiment %s...' % expr))
    expr = Experiment.objects(id=expr_id)
    if (not expr):
        self.log.warn('rollback failed due to experiment not found')
        return
    starter = self.get_starter(expr.hackathon, expr.template)
    if (not starter):
        self.log.warn('rollback failed due to no starter found')
        return
    return starter.rollback(Context(experiment=expr))

dataset/ETHPy150Open msopentechcn/open-hackathon/open-hackathon-server/src/hackathon/expr/expr_mgr.py ExprManager.roll_back/VarMisuse@23/65 `expr_id`->`expr`