projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15107: Propagate first/last names from Google to RailsAPI.
[arvados.git]
/
lib
/
dispatchcloud
/
scheduler
/
sync.go
diff --git
a/lib/dispatchcloud/scheduler/sync.go
b/lib/dispatchcloud/scheduler/sync.go
index 78f099549657538102115efc5823c8e9f672c105..205ee5018710a47749e276f73985ceb3b1b1af01 100644
(file)
--- a/
lib/dispatchcloud/scheduler/sync.go
+++ b/
lib/dispatchcloud/scheduler/sync.go
@@
-61,6
+61,13
@@
func (sch *Scheduler) sync() {
// preparing to run a container that
// has already been unlocked/requeued.
go sch.kill(uuid, fmt.Sprintf("state=%s", ent.Container.State))
// preparing to run a container that
// has already been unlocked/requeued.
go sch.kill(uuid, fmt.Sprintf("state=%s", ent.Container.State))
+ } else if ent.Container.Priority == 0 {
+ sch.logger.WithFields(logrus.Fields{
+ "ContainerUUID": uuid,
+ "State": ent.Container.State,
+ "Priority": ent.Container.Priority,
+ }).Info("container on hold")
+ sch.queue.Forget(uuid)
}
case arvados.ContainerStateLocked:
if running && !exited.IsZero() && qUpdated.After(exited) {
}
case arvados.ContainerStateLocked:
if running && !exited.IsZero() && qUpdated.After(exited) {