[ARVADOS] updated: 1.3.0-198-gb10560290
Git user
git at public.curoverse.com
Fri Jan 25 16:54:24 EST 2019
Summary of changes:
lib/dispatchcloud/worker/pool.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via b105602902e38f18a48505e2091ffea77b2c7c89 (commit)
from c1aa581b3511b89527f185fd3fac7447aa33c9fc (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 b105602902e38f18a48505e2091ffea77b2c7c89
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Fri Jan 25 16:40:59 2019 -0500
14325: Don't count busy workers with state=Unknown as Unallocated.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/lib/dispatchcloud/worker/pool.go b/lib/dispatchcloud/worker/pool.go
index 1665a1e43..b2d601d46 100644
--- a/lib/dispatchcloud/worker/pool.go
+++ b/lib/dispatchcloud/worker/pool.go
@@ -204,7 +204,7 @@ func (wp *Pool) Unallocated() map[arvados.InstanceType]int {
creating[it] = len(times)
}
for _, wkr := range wp.workers {
- if !(wkr.state == StateIdle || wkr.state == StateBooting || wkr.state == StateUnknown) || wkr.idleBehavior != IdleBehaviorRun {
+ if !(wkr.state == StateIdle || wkr.state == StateBooting || wkr.state == StateUnknown) || wkr.idleBehavior != IdleBehaviorRun || len(wkr.running) > 0 {
continue
}
it := wkr.instType
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list