Exemple #1
0
	def __init__(self, consumers=4):
		AbstractQueueConsumer.__init__(self, consumers)
Exemple #2
0
	def _initialize(self, consumers):
		self._downloads = self._manager.dict()
		self._results = self._manager.dict()
		AbstractQueueConsumer._initialize(self, consumers)
Exemple #3
0
	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)