[ARVADOS] updated: 1.3.0-1101-g92d72b354

Git user git at public.curoverse.com
Fri Jun 14 20:53:13 UTC 2019


Summary of changes:
 lib/dispatchcloud/worker/pool.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

       via  92d72b35447cf7210728725b217812492b3855e0 (commit)
      from  42966c194493f8e42e26e3d64880e5c93a9c3251 (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 92d72b35447cf7210728725b217812492b3855e0
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Fri Jun 14 16:52:36 2019 -0400

    15340: Skip metrics update when running tests with no registry.
    
    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 8616d6e9a..201e8aad2 100644
--- a/lib/dispatchcloud/worker/pool.go
+++ b/lib/dispatchcloud/worker/pool.go
@@ -789,7 +789,9 @@ func (wp *Pool) sync(threshold time.Time, instances []cloud.Instance) {
 			"WorkerState": wkr.state,
 		})
 		logger.Info("instance disappeared in cloud")
-		wp.mDisappearances.WithLabelValues(stateString[wkr.state]).Inc()
+		if wp.mDisappearances != nil {
+			wp.mDisappearances.WithLabelValues(stateString[wkr.state]).Inc()
+		}
 		delete(wp.workers, id)
 		go wkr.Close()
 		notify = true

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list