9187: Don't try to take lock on containers with priority 0.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Wed, 8 Jun 2016 15:46:12 +0000 (11:46 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Wed, 8 Jun 2016 15:46:55 +0000 (11:46 -0400)
sdk/go/dispatch/dispatch.go

index 9fe2e396fc03ea19cf716040a96842fcdd8f00cc..33569953da8751a16651d9725c40691fc60e5703 100644 (file)
@@ -196,7 +196,7 @@ func (dispatcher *Dispatcher) handleUpdate(container Container) {
                return
        }
 
-       if container.State == Queued {
+       if container.State == Queued && container.Priority > 0 {
                // Try to take the lock
                if err := dispatcher.UpdateState(container.UUID, Locked); err != nil {
                        return