[zh-cn] resync frontend-nginx.conf
This commit is contained in:
@@ -4,7 +4,7 @@ import time
|
||||
import rediswq
|
||||
|
||||
host="redis"
|
||||
# Uncomment next two lines if you do not have Kube-DNS working.
|
||||
# 如果你未在运行 Kube-DNS,请取消下面两行的注释
|
||||
# import os
|
||||
# host = os.getenv("REDIS_SERVICE_HOST")
|
||||
|
||||
@@ -16,7 +16,7 @@ while not q.empty():
|
||||
if item is not None:
|
||||
itemstr = item.decode("utf-8")
|
||||
print("Working on " + itemstr)
|
||||
time.sleep(10) # Put your actual work here instead of sleep.
|
||||
time.sleep(10) # 将你的实际工作放在此处来取代 sleep
|
||||
q.complete(item)
|
||||
else:
|
||||
print("Waiting for work")
|
||||
|
||||
Reference in New Issue
Block a user