def run()

in app/marketplace.py [0:0]


    def run(self):
        logger.info("Initializing")
        if self.state.type != "init":
            while True:
                self.meter_usages()
                self.update_state()
                if self.state.type == "stop":
                    message = f"The usage couldn't be sent after {self._max_send_stop } tries. Please check that your product has a way to reach the internet."
                    self.state.add(message)
                    logger.error(message)
                logger.info("Going to sleep")
                sleep(self._SEND_DIMENSIONS_AFTER)