|
|
@ -18,10 +18,7 @@ def main():
|
|
|
|
|
|
|
|
|
|
|
|
use_redis()
|
|
|
|
use_redis()
|
|
|
|
|
|
|
|
|
|
|
|
#funcs = filter(lambda s: not s.startswith('_'), dir(rq.dummy))
|
|
|
|
queues = ('default', 'high', 'low')
|
|
|
|
#print(funcs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queues = ('default', 'high', 'normal', 'low')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sample_calls = [
|
|
|
|
sample_calls = [
|
|
|
|
(dummy.do_nothing, [], {}),
|
|
|
|
(dummy.do_nothing, [], {}),
|
|
|
@ -30,6 +27,10 @@ def main():
|
|
|
|
(dummy.do_nothing, [], {}),
|
|
|
|
(dummy.do_nothing, [], {}),
|
|
|
|
(dummy.do_nothing, [], {}),
|
|
|
|
(dummy.do_nothing, [], {}),
|
|
|
|
(dummy.sleep, [1], {}),
|
|
|
|
(dummy.sleep, [1], {}),
|
|
|
|
|
|
|
|
(dummy.fib, [8], {}), # normal result
|
|
|
|
|
|
|
|
(dummy.fib, [24], {}), # takes pretty long
|
|
|
|
|
|
|
|
(dummy.div_by_zero, [], {}), # 5 / 0 => div by zero exc
|
|
|
|
|
|
|
|
(dummy.fib, [30], {}), # takes long, then crashes
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
for i in range(opts.count):
|
|
|
|
for i in range(opts.count):
|
|
|
|