log msgs
This commit is contained in:
parent
cacb6f6642
commit
eae81e380f
|
@ -178,18 +178,18 @@ class TopShouts:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
async def worker():
|
async def worker():
|
||||||
print("top shouts worker start")
|
print("shouts cache worker start")
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
print("top shouts: update cache")
|
print("shouts cache updating...")
|
||||||
await TopShouts.prepare_favorite_shouts()
|
await TopShouts.prepare_favorite_shouts()
|
||||||
await TopShouts.prepare_recent_shouts()
|
await TopShouts.prepare_recent_shouts()
|
||||||
await TopShouts.prepare_shouts_by_rating()
|
await TopShouts.prepare_shouts_by_rating()
|
||||||
await TopShouts.prepare_shouts_by_view()
|
await TopShouts.prepare_shouts_by_view()
|
||||||
await TopShouts.prepare_top_authors()
|
await TopShouts.prepare_top_authors()
|
||||||
print("top shouts: update finished")
|
print("shouts cache update finished")
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print("top shouts worker error = %s" % (err))
|
print("shouts cache worker error = %s" % (err))
|
||||||
await asyncio.sleep(TopShouts.period)
|
await asyncio.sleep(TopShouts.period)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user