Пример #1
0
 def setUp(self):
     TestQless.setUp(self)
     self.worker = PatchedGeventWorker(['foo'],
                                       self.client,
                                       greenlets=1,
                                       interval=0.2)
     self.queue = self.client.queues['foo']
     self.thread = None
Пример #2
0
 def setUp(self):
     TestQless.setUp(self)
     self.client.queues['foo'].put('Foo', {}, jid='jid')
     self.client.jobs['jid'].track()
Пример #3
0
 def setUp(self):
     TestQless.setUp(self)
     # Ensure whe know what the grace period is
     self.lua('config.set', 0, 'grace-period', self.grace)
Пример #4
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period for any of these tests
     self.lua('config.set', 0, 'grace-period', 0)
Пример #5
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace periods for this
     self.lua('config.set', 0, 'grace-period', 0)
     self.lua('config.set', 0, 'heartbeat', -10)
Пример #6
0
 def setUp(self):
     TestQless.setUp(self)
     self.queue = self.client.queues['foo']
     self.thread = None
Пример #7
0
 def setUp(self):
     TestQless.setUp(self)
     self.worker = PatchedForkingWorker(
         ['foo'], self.client, workers=1, interval=1)
     self.queue = self.client.queues['foo']
     self.thread = None
Пример #8
0
 def setUp(self):
     TestQless.setUp(self)
     # Ensure whe know what the grace period is
     self.lua('config.set', 0, 'grace-period', self.grace)
Пример #9
0
 def setUp(self):
     TestQless.setUp(self)
     # Ensure whe know what the grace period is
     self.lua("config.set", 0, "grace-period", self.grace)
Пример #10
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period for any of these tests
     self.lua("config.set", 0, "grace-period", 0)
Пример #11
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace periods for this
     self.lua("config.set", 0, "grace-period", 0)
     self.lua("config.set", 0, "heartbeat", -10)
Пример #12
0
 def setUp(self):
     TestQless.setUp(self)
     self.worker = Worker(['foo'], self.client)
Пример #13
0
 def setUp(self):
     TestQless.setUp(self)
     self.worker = PatchedGeventWorker(
         ['foo'], self.client, greenlets=1, interval=0.2)
     self.queue = self.client.queues['foo']
     self.thread = None
Пример #14
0
 def setUp(self):
     TestQless.setUp(self)
     self.queue = self.client.queues['foo']
     self.thread = None
Пример #15
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period for any of these tests
     self.lua('config.set', 0, 'grace-period', 0)
Пример #16
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace periods for this
     self.lua('config.set', 0, 'grace-period', 0)
     self.lua('config.set', 0, 'heartbeat', -10)
Пример #17
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period
     self.lua('config.set', 0, 'grace-period', 0)
Пример #18
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period
     self.lua('config.set', 0, 'grace-period', 0)
Пример #19
0
 def setUp(self):
     TestQless.setUp(self)
     self.worker = Worker(['foo'], self.client)