def nextTuple(self): if self.count < 2: word = choice(words) id = str(uuid4()) self.pending[id] = word storm.rpcMetrics("my-custom-shellspout-metric", 1) self.count = self.count + 1 storm.log("TesterSpout update my-custom-shellspout-metric "+str(self.count)) storm.emit([word], id=id)