diff options
Diffstat (limited to 'python/client.py')
| -rw-r--r-- | python/client.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/client.py b/python/client.py new file mode 100644 index 00000000..5f7ec6d6 --- /dev/null +++ b/python/client.py @@ -0,0 +1,8 @@ +import redis +import tasks +from pickle import loads + +q = redis.Redis() +while True: + f, args = loads(q.blpop("tasks")[1]) + getattr(tasks, f)(*args) |
