def _cleanup(self, session): total = delete_msg_expired(session, self.server.cluster_id, None, utcnow_as_ms()) return total, 'expired'
def _cleanup_sql_data(self, session, cluster_id, topic_id, now): delete_msg_delivered(session, cluster_id, topic_id) delete_msg_expired(session, cluster_id, topic_id, now) delete_enq_delivered(session, cluster_id, topic_id) delete_enq_marked_deleted(session, cluster_id, topic_id)