12630: Call nvidia-modprobe, support CUDA_VISIBLE_DEVICES
[arvados.git] / lib / dispatchcloud / scheduler / run_queue.go
index 5bd4477ca58923edbd1af0a33df6fb943b51aec6..f729f0dc23a7f927eca6c39fe75734a4a2355ad9 100644 (file)
@@ -75,19 +75,22 @@ tryrun:
                                // starve this one by using keeping
                                // idle workers alive on different
                                // instance types.
-                               logger.Debug("overquota")
+                               logger.Trace("overquota")
                                overquota = sorted[i:]
                                break tryrun
-                       } else if logger.Info("creating new instance"); sch.pool.Create(it) {
+                       } else if sch.pool.Create(it) {
                                // Success. (Note pool.Create works
                                // asynchronously and does its own
-                               // logging, so we don't need to.)
+                               // logging about the eventual outcome,
+                               // so we don't need to.)
+                               logger.Info("creating new instance")
                        } else {
                                // Failed despite not being at quota,
                                // e.g., cloud ops throttled.  TODO:
                                // avoid getting starved here if
                                // instances of a specific type always
                                // fail.
+                               logger.Trace("pool declined to create new instance")
                                continue
                        }