Exemple #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
Exemple #2
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period for any of these tests
     self.lua('config.set', 0, 'grace-period', 0)
Exemple #3
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)
Exemple #4
0
 def tearDown(self):
     if self.thread:
         self.thread.join()
     TestQless.tearDown(self)
Exemple #5
0
 def setUp(self):
     TestQless.setUp(self)
     self.queue = self.client.queues['foo']
     self.thread = None
 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
Exemple #7
0
 def setUp(self):
     TestQless.setUp(self)
     # Ensure whe know what the grace period is
     self.lua('config.set', 0, 'grace-period', self.grace)
Exemple #8
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period for any of these tests
     self.lua('config.set', 0, 'grace-period', 0)
 def setUp(self):
     TestQless.setUp(self)
     # No grace period for any of these tests
     self.lua("config.set", 0, "grace-period", 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)
Exemple #11
0
 def setUp(self):
     TestQless.setUp(self)
     self.worker = Worker(['foo'], self.client)
 def tearDown(self):
     if self.thread:
         self.thread.join()
     TestQless.tearDown(self)
Exemple #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
Exemple #14
0
 def setUp(self):
     TestQless.setUp(self)
     self.queue = self.client.queues['foo']
     self.thread = None
Exemple #15
0
 def setUp(self):
     TestQless.setUp(self)
     # Ensure whe know what the grace period is
     self.lua('config.set', 0, 'grace-period', self.grace)
Exemple #16
0
 def setUp(self):
     TestQless.setUp(self)
     self.client.queues['foo'].put('Foo', {}, jid='jid')
     self.client.jobs['jid'].track()
 def setUp(self):
     TestQless.setUp(self)
     # Ensure whe know what the grace period is
     self.lua("config.set", 0, "grace-period", self.grace)
Exemple #18
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)
Exemple #19
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period
     self.lua('config.set', 0, 'grace-period', 0)
Exemple #20
0
 def setUp(self):
     TestQless.setUp(self)
     # No grace period
     self.lua('config.set', 0, 'grace-period', 0)
Exemple #21
0
 def setUp(self):
     TestQless.setUp(self)
     self.worker = Worker(['foo'], self.client)