X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8092484ad328a502b3928da22d60e9a3c1c5b1cd..529bee0099e69f33ab11e01a511542b07419a479:/lib/dispatchcloud/scheduler/run_queue.go diff --git a/lib/dispatchcloud/scheduler/run_queue.go b/lib/dispatchcloud/scheduler/run_queue.go index 2f1f175890..03fa592777 100644 --- a/lib/dispatchcloud/scheduler/run_queue.go +++ b/lib/dispatchcloud/scheduler/run_queue.go @@ -239,7 +239,7 @@ tryrun: // so mark it as allocated, and try to // start the container. unalloc[unallocType]-- - logger = logger.WithField("InstanceType", unallocType) + logger = logger.WithField("InstanceType", unallocType.Name) if dontstart[unallocType] { // We already tried & failed to start // a higher-priority container on the @@ -282,7 +282,7 @@ tryrun: logger.Trace("all eligible types at capacity") continue } - logger = logger.WithField("InstanceType", availableType) + logger = logger.WithField("InstanceType", availableType.Name) if !sch.pool.Create(availableType) { // Failed despite not being at quota, // e.g., cloud ops throttled.