-func scontrolUpdate(ctr arvados.Container) {
- sqCheck.L.Lock()
- cmd := scontrolCmd(ctr)
- msg, err := cmd.CombinedOutput()
- sqCheck.L.Unlock()
-
- if err != nil {
- log.Printf("%q %q: %s %q", cmd.Path, cmd.Args, err, msg)
- time.Sleep(time.Second)
- } else if sqCheck.HasUUID(ctr.UUID) {
- log.Printf("Container %s priority is now %v, niceness is now %v",
- ctr.UUID, ctr.Priority, sqCheck.GetNiceness(ctr.UUID))
- }
-}
-
-func readConfig(dst interface{}, path string) error {
- err := config.LoadFile(dst, path)
+func (disp *Dispatcher) readConfig(path string) error {
+ err := config.LoadFile(disp, path)