

@shared_task(bind=True)
def template_group_execution_failed(self, task_uuid, template_group_result_uuid):
    task_result = self.app.AsyncResult(task_uuid)
    error = models.TemplateActionException.deserialize(str(task_result.result))
    template_group_result = models.TemplateGroupResult.objects.get(uuid=template_group_result_uuid)
    template_group_result.state_message = 'Execution of a template group has failed.'
    template_group_result_uuid.error_message = error['message']
    template_group_result.error_details = error.get('details', '')
    template_group_result.is_finished = True
    template_group_result.is_erred = True
    template_group_result.save()

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/template/tasks.py template_group_execution_failed/VarMisuse@70/123 `template_group_result`->`template_group_result_uuid`