def process(self):
        main_logger = logging.getLogger(config.main_logger_name)
        while True:
            if 0 > self.queue_size():

                sender = None
                sent = []
                try:
                    sender = APNsPushSender(config.config, main_logger)
                    sent = self.send_batch(sender)
                    time.sleep(self.apn_sender_interval_sec)
                except Exception:
                    main_logger.exception("ApnNotificationProcessor failed to send notifications")
                finally:
                    if sender is not None:
                        sender.close_after_sending()
                    self.log_notifications(sent)
            else:
                time.sleep(self.apn_sender_interval_sec)
dataset/ETHPy150Open Nordeus/pushkin/pushkin/sender/senders.py/ApnNotificationSender.process/swapped operands of `>`