Add query API for status and reduce function of GPTreeProducer