def handle(self, request, data): try: api.execution_update(request, data["execution_id"], "description", data["description"]) msg = _('Successfully updated execution description.') messages.success(request, msg) return True except Exception: msg = _('Failed to update execution description.') redirect = reverse('horizon:mistral:executions:index') exceptions.handle(request, msg, redirect=redirect)
def handle(self, request, data): try: api.execution_update( request, data["execution_id"], "description", data["description"]) msg = _('Successfully updated execution description.') messages.success(request, msg) return True except Exception: msg = _('Failed to update execution description.') redirect = reverse('horizon:mistral:executions:index') exceptions.handle(request, msg, redirect=redirect)
def action(self, request, obj_id): api.execution_update(request, obj_id, "state", "PAUSED")
def action(self, request, obj_id): api.execution_update(request, obj_id, "state", "ERROR")
def action(self, request, obj_id): api.execution_update(request, obj_id, "state", "RUNNING")