Skip to content

Commit 9e8003a

Browse files
authored
Merge pull request #29184 from Arhell/fixes
[ja] Fix typo in worker.py example script
2 parents 7321fd9 + 473c228 commit 9e8003a

File tree

1 file changed

+2
-2
lines changed
  • content/ja/examples/application/job/redis

1 file changed

+2
-2
lines changed

content/ja/examples/application/job/redis/worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
# import os
99
# host = os.getenv("REDIS_SERVICE_HOST")
1010

11-
q = rediswq.RedisWQ(name="job2", host="redis")
11+
q = rediswq.RedisWQ(name="job2", host=host)
1212
print("Worker with sessionID: " + q.sessionID())
1313
print("Initial queue state: empty=" + str(q.empty()))
1414
while not q.empty():
15-
item = q.lease(lease_secs=10, block=True, timeout=2)
15+
item = q.lease(lease_secs=10, block=True, timeout=2)
1616
if item is not None:
1717
itemstr = item.decode("utf=8")
1818
print("Working on " + itemstr)

0 commit comments

Comments
 (0)