示例#1
0
 def queue_controller(self):
     controller = controllers.QueueController(self)
     if (self.conf.profiler.enabled
             and (self.conf.profiler.trace_message_store
                  or self.conf.profiler.trace_management_store)):
         return profiler.trace_cls("mongodb_queues_controller")(controller)
     else:
         return controller
示例#2
0
 def queue_controller(self):
     return controllers.QueueController(self)