sync zh/ en/ (#19918)

This commit is contained in:
行颠
2020-03-28 19:57:52 +08:00
committed by GitHub
parent 59cd0289fe
commit 2a8ad5e658
38 changed files with 1059 additions and 934 deletions
@@ -12,9 +12,9 @@ q = rediswq.RedisWQ(name="job2", host="redis")
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")
itemstr = item.decode("utf-8")
print("Working on " + itemstr)
time.sleep(10) # Put your actual work here instead of sleep.
q.complete(item)