def consume(self, work): Log.info("###Demo consume %s and sleep 10s" %work) time.sleep(random.randint(1,3)) return True