예제 #1
0
    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)
예제 #3
0
 def action(self, request, obj_id):
     api.execution_update(request, obj_id, "state", "PAUSED")
예제 #4
0
 def action(self, request, obj_id):
     api.execution_update(request, obj_id, "state", "ERROR")
예제 #5
0
 def action(self, request, obj_id):
     api.execution_update(request, obj_id, "state", "RUNNING")
예제 #6
0
 def action(self, request, obj_id):
     api.execution_update(request, obj_id, "state", "ERROR")
예제 #7
0
 def action(self, request, obj_id):
     api.execution_update(request, obj_id, "state", "RUNNING")
예제 #8
0
 def action(self, request, obj_id):
     api.execution_update(request, obj_id, "state", "PAUSED")