Пример #1
0
def initialize():
    # order sensitive
    from pulp.server.dispatch import pickling
    pickling.initialize()
    _initialize_task_queue()
    _initialize_coordinator()
    _initialize_scheduler()
Пример #2
0
def initialize():
    # order sensitive
    from pulp.server.dispatch import pickling
    pickling.initialize()
    _initialize_task_queue()
    _initialize_coordinator()
    _initialize_scheduler()
Пример #3
0
 def setUp(self):
     super(SchedulerTests, self).setUp()
     pickling.initialize()
     self.scheduler = Scheduler()
     # replace the coordinator so we do not actually execute tasks
     self._coordinator_factory = dispatch_factory.coordinator
     dispatch_factory.coordinator = mock.Mock()
     # NOTE we are not starting the scheduler
     self.scheduled_call_collection = ScheduledCall.get_collection()
Пример #4
0
 def setUp(self):
     super(TaskQueueTests, self).setUp()
     pickling.initialize()
     self.queue = TaskQueue(2)
Пример #5
0
 def setUp(self):
     super(TaskQueueTests, self).setUp()
     pickling.initialize()
     self.queue = TaskQueue(2)