Remove misleading warning.

This commit is contained in:
Maximilian Paß
2023-11-17 15:16:40 +01:00
parent 4ce124fdab
commit 096ac9874f

View File

@ -180,7 +180,7 @@ func (m *NomadEnvironmentManager) KeepEnvironmentsSynced(synchronizeRunners func
}
// Load Runners and keep them synchronized.
if err := synchronizeRunners(ctx); err != nil {
if err := synchronizeRunners(ctx); err != nil && ctx.Err() == nil {
log.WithContext(ctx).WithError(err).Warn("Loading and synchronizing Runners failed! Retrying...")
return err
}