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