projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c4bcfb
)
9187: Don't try to take lock on containers with priority 0.
author
Peter Amstutz <peter.amstutz@curoverse.com>
Wed, 8 Jun 2016 15:46:12 +0000
(11:46 -0400)
committer
Peter Amstutz <peter.amstutz@curoverse.com>
Wed, 8 Jun 2016 15:46:55 +0000
(11:46 -0400)
sdk/go/dispatch/dispatch.go
patch
|
blob
|
history
diff --git
a/sdk/go/dispatch/dispatch.go
b/sdk/go/dispatch/dispatch.go
index 9fe2e396fc03ea19cf716040a96842fcdd8f00cc..33569953da8751a16651d9725c40691fc60e5703 100644
(file)
--- a/
sdk/go/dispatch/dispatch.go
+++ b/
sdk/go/dispatch/dispatch.go
@@
-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