[ARVADOS] created: 1.3.0-425-g0db7bdb84

Git user git at public.curoverse.com
Tue Mar 5 00:22:50 EST 2019


        at  0db7bdb8425cd29ae9c88b31d6c4fd3ac18d090c (commit)


commit 0db7bdb8425cd29ae9c88b31d6c4fd3ac18d090c
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Mon Mar 4 23:00:00 2019 -0500

    14807: Start reporting metrics immediately.
    
    ...instead of waiting for the first notify event.
    
    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 14f6a3efc..fe1c6ecc0 100644
--- a/lib/dispatchcloud/worker/pool.go
+++ b/lib/dispatchcloud/worker/pool.go
@@ -565,6 +565,7 @@ func (wp *Pool) registerMetrics(reg *prometheus.Registry) {
 func (wp *Pool) runMetrics() {
 	ch := wp.Subscribe()
 	defer wp.Unsubscribe(ch)
+	wp.updateMetrics()
 	for range ch {
 		wp.updateMetrics()
 	}

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list