collecting stats of query workers