Manager: reduce log level when worker asks task but has wrong status
This can happen quite often and it's fine, so it's not worth a warning.
This commit is contained in:
parent
eb65ac9085
commit
3baac0a2d8
@ -279,7 +279,7 @@ func (f *Flamenco) ScheduleTask(e echo.Context) error {
|
|||||||
|
|
||||||
// Check that this worker is actually allowed to do work.
|
// Check that this worker is actually allowed to do work.
|
||||||
if worker.StatusRequested != "" {
|
if worker.StatusRequested != "" {
|
||||||
logger.Warn().
|
logger.Info().
|
||||||
Str("workerStatus", string(worker.Status)).
|
Str("workerStatus", string(worker.Status)).
|
||||||
Str("requestedStatus", string(worker.StatusRequested)).
|
Str("requestedStatus", string(worker.StatusRequested)).
|
||||||
Msg("worker asking for task but needs state change first")
|
Msg("worker asking for task but needs state change first")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user