Cleanup: manager, document two functions
This commit is contained in:
parent
43f244ecab
commit
797dea85ed
@ -94,6 +94,7 @@ func (f *Flamenco) SubmitJob(e echo.Context) error {
|
|||||||
return e.JSON(http.StatusOK, apiJob)
|
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 {
|
func (f *Flamenco) SetJobStatus(e echo.Context, jobID string) error {
|
||||||
logger := requestLogger(e)
|
logger := requestLogger(e)
|
||||||
ctx := e.Request().Context()
|
ctx := e.Request().Context()
|
||||||
@ -130,6 +131,7 @@ func (f *Flamenco) SetJobStatus(e echo.Context, jobID string) error {
|
|||||||
return e.NoContent(http.StatusNoContent)
|
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 {
|
func (f *Flamenco) SetTaskStatus(e echo.Context, taskID string) error {
|
||||||
logger := requestLogger(e)
|
logger := requestLogger(e)
|
||||||
ctx := e.Request().Context()
|
ctx := e.Request().Context()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user