[ja] Fix typo in worker.py example script
parent
02ef010015
commit
473c228985
content/ja/examples/application/job/redis
|
@ -8,7 +8,7 @@ host="redis"
|
||||||
# import os
|
# import os
|
||||||
# host = os.getenv("REDIS_SERVICE_HOST")
|
# 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("Worker with sessionID: " + q.sessionID())
|
||||||
print("Initial queue state: empty=" + str(q.empty()))
|
print("Initial queue state: empty=" + str(q.empty()))
|
||||||
while not q.empty():
|
while not q.empty():
|
||||||
|
|
Loading…
Reference in New Issue