def cleanup(self, event): self.__log.info("Executing cleaning up the data in the cartridge instance...") publisher.publish_maintenance_mode_event() self.execute_event_extendables("clean", {}) self.__log.info("cleaning up finished in the cartridge instance...") self.__log.info("publishing ready to shutdown event...") publisher.publish_instance_ready_to_shutdown_event()
def cleanup(self, event): self.__log.debug("Executing cleanup extension for event %s" % event) publisher.publish_maintenance_mode_event() self.execute_event_extendables("clean", {}) self.__log.info("Cleaning up finished in the cartridge instance...") self.__log.info("Publishing ready to shutdown event...") publisher.publish_instance_ready_to_shutdown_event()
def cleanup(event): log.debug("Executing cleanup extension for event %s..." % event) publisher.publish_maintenance_mode_event() execute_event_extendables("clean", {}) publisher.publish_instance_ready_to_shutdown_event()