def __init__(self, consumers=4): AbstractQueueConsumer.__init__(self, consumers)
def _initialize(self, consumers): self._downloads = self._manager.dict() self._results = self._manager.dict() AbstractQueueConsumer._initialize(self, consumers)
def _initialize(self, consumers): """Internal method to initialize all global variables. This initializes the manager, queue, pool and trigger the consumer.""" self.level = DFAULT_LOG_LEVEL # This is used to securely terminate the logging process once started AbstractQueueConsumer._initialize(self, consumers)