[ARVADOS] updated: 00c1e92c214db9febd5af2d001836f12cb9b2372

Git user git at public.curoverse.com
Wed Jun 8 11:46:17 EDT 2016


Summary of changes:
 sdk/go/dispatch/dispatch.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  00c1e92c214db9febd5af2d001836f12cb9b2372 (commit)
      from  3c4bcfbe8611878bff64778180f84ad93829e6b2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 00c1e92c214db9febd5af2d001836f12cb9b2372
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Wed Jun 8 11:46:12 2016 -0400

    9187: Don't try to take lock on containers with priority 0.

diff --git a/sdk/go/dispatch/dispatch.go b/sdk/go/dispatch/dispatch.go
index 9fe2e39..9b6760a 100644
--- 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

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list