diff options
Diffstat (limited to 'external/tests/test.py')
-rw-r--r-- | external/tests/test.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/external/tests/test.py b/external/tests/test.py new file mode 100644 index 0000000..da9ff38 --- /dev/null +++ b/external/tests/test.py @@ -0,0 +1,12 @@ +from time import sleep +from redis import Redis +from rq import Queue + +from testmod import test + +q = Queue('slices', connection=Redis(host='localhost')) +j = q.enqueue(test) +print(j.result) +while j.result == None: + sleep(1) + print(j.result) |