sync yaml py Dockerfile json with /en (#19882)

This commit is contained in:
行颠
2020-03-27 19:56:23 +08:00
committed by GitHub
parent 05d962d1d1
commit 0e17dd9098
29 changed files with 926 additions and 936 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)