diff --git a/internal/manager/api_impl/workers.go b/internal/manager/api_impl/workers.go index e9cef72a..0cb5741b 100644 --- a/internal/manager/api_impl/workers.go +++ b/internal/manager/api_impl/workers.go @@ -273,7 +273,7 @@ func (f *Flamenco) ScheduleTask(e echo.Context) error { // Check that this worker is actually allowed to do work. requiredStatusToGetTask := api.WorkerStatusAwake - if worker.Status != api.WorkerStatusAwake { + if worker.Status != requiredStatusToGetTask { logger.Warn(). Str("workerStatus", string(worker.Status)). Str("requiredStatus", string(requiredStatusToGetTask)).