From 797dea85edb0b297dda47a10f9352949aaa5c91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 19 May 2022 14:20:17 +0200 Subject: [PATCH] Cleanup: manager, document two functions --- internal/manager/api_impl/jobs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/manager/api_impl/jobs.go b/internal/manager/api_impl/jobs.go index 0b466b3c..1ecd503e 100644 --- a/internal/manager/api_impl/jobs.go +++ b/internal/manager/api_impl/jobs.go @@ -94,6 +94,7 @@ func (f *Flamenco) SubmitJob(e echo.Context) error { return e.JSON(http.StatusOK, apiJob) } +// SetJobStatus is used by the web interface to change a job's status. func (f *Flamenco) SetJobStatus(e echo.Context, jobID string) error { logger := requestLogger(e) ctx := e.Request().Context() @@ -130,6 +131,7 @@ func (f *Flamenco) SetJobStatus(e echo.Context, jobID string) error { return e.NoContent(http.StatusNoContent) } +// SetTaskStatus is used by the web interface to change a task's status. func (f *Flamenco) SetTaskStatus(e echo.Context, taskID string) error { logger := requestLogger(e) ctx := e.Request().Context()