From fc7419570424104280d44d2019a96ad9fe843eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 20 May 2022 16:29:43 +0200 Subject: [PATCH] OAPI: add operation to fetch the tail end of a task log --- pkg/api/flamenco-openapi.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/pkg/api/flamenco-openapi.yaml b/pkg/api/flamenco-openapi.yaml index d00e2bab..784360f2 100644 --- a/pkg/api/flamenco-openapi.yaml +++ b/pkg/api/flamenco-openapi.yaml @@ -427,6 +427,32 @@ paths: schema: $ref: "#/components/schemas/Error" + /api/tasks/{task_id}/logtail: + summary: Fetch the task's last few log lines. + get: + operationId: fetchTaskLogTail + summary: Fetch the last few lines of the task's log. + tags: [jobs] + parameters: + - name: task_id + in: path + required: true + schema: { type: string, format: uuid } + responses: + "200": + description: The task log. + content: + text/plain: + schema: + type: array + items: { type: string } + default: + description: Unexpected error. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /api/tasks/{task_id}/setstatus: summary: > Request a status change for the given task. This may have effect on the