Esempio n. 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
Esempio n. 2
0
 def setUp(self):
     TestQless.setUp(self)
     self.client.queues['foo'].put('Foo', {}, jid='jid')
     self.client.jobs['jid'].track()
Esempio n. 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)
Esempio n. 4
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period for any of these tests
     self.lua('config.set', 0, 'grace-period', 0)
Esempio n. 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)
Esempio n. 6
0
 def setUp(self):
     TestQless.setUp(self)
     self.queue = self.client.queues['foo']
     self.thread = None
Esempio n. 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
Esempio n. 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)
Esempio n. 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)
Esempio n. 10
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period for any of these tests
     self.lua("config.set", 0, "grace-period", 0)
Esempio n. 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)
Esempio n. 12
0
 def setUp(self):
     TestQless.setUp(self)
     self.worker = Worker(['foo'], self.client)
Esempio n. 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
Esempio n. 14
0
 def setUp(self):
     TestQless.setUp(self)
     self.queue = self.client.queues['foo']
     self.thread = None
Esempio n. 15
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period for any of these tests
     self.lua('config.set', 0, 'grace-period', 0)
Esempio n. 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)
Esempio n. 17
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period
     self.lua('config.set', 0, 'grace-period', 0)
Esempio n. 18
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period
     self.lua('config.set', 0, 'grace-period', 0)
Esempio n. 19
0
 def setUp(self):
     TestQless.setUp(self)
     self.worker = Worker(['foo'], self.client)