def execute_task(self, args, kwargs): # To optimize performance and memory usage, we use kwargs from this # class instance instead of passing the same settings thousand times in # the tasks themselves. return Bear.execute_task(self, args, self._kwargs)
def execute_task(self, args, kwargs): # To optimize performance a bit and memory usage, we use args and # kwargs from this class instance, instead of passing them via the # task. return Bear.execute_task(self, (self.file_dict,), self._kwargs)