Beispiel #1
0
 def test_unthrottled_by_target_interval(self):
     assert scheduler.run_unthrottled(
         self.task(target_interval=0, schedule="poisson"))
Beispiel #2
0
 def test_unthrottled_by_target_throughput(self):
     assert scheduler.run_unthrottled(self.task(target_throughput=None))
Beispiel #3
0
 def test_throttled_by_custom_schedule(self):
     assert not scheduler.run_unthrottled(
         self.task(schedule="my-custom-schedule"))
Beispiel #4
0
 def test_throttled_by_target_interval(self):
     assert not scheduler.run_unthrottled(self.task(target_interval=2))
Beispiel #5
0
 def test_throttled_by_target_throughput(self):
     assert not scheduler.run_unthrottled(
         self.task(target_throughput=4, schedule="deterministic"))
Beispiel #6
0
 def test_throttled_by_target_interval(self):
     self.assertFalse(scheduler.run_unthrottled(self.task(target_interval=2)))