From 473c22898518fa4f61f14542fa4785064d987097 Mon Sep 17 00:00:00 2001 From: Arhell Date: Mon, 2 Aug 2021 01:06:00 +0300 Subject: [PATCH] [ja] Fix typo in worker.py example script --- content/ja/examples/application/job/redis/worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/ja/examples/application/job/redis/worker.py b/content/ja/examples/application/job/redis/worker.py index 49e5dae798..87d90bde18 100644 --- a/content/ja/examples/application/job/redis/worker.py +++ b/content/ja/examples/application/job/redis/worker.py @@ -8,11 +8,11 @@ host="redis" # import os # host = os.getenv("REDIS_SERVICE_HOST") -q = rediswq.RedisWQ(name="job2", host="redis") +q = rediswq.RedisWQ(name="job2", host=host) print("Worker with sessionID: " + q.sessionID()) print("Initial queue state: empty=" + str(q.empty())) while not q.empty(): - item = q.lease(lease_secs=10, block=True, timeout=2) + item = q.lease(lease_secs=10, block=True, timeout=2) if item is not None: itemstr = item.decode("utf=8") print("Working on " + itemstr)