cache-fix
Some checks failed
deploy / deploy (push) Failing after 9s

This commit is contained in:
Untone 2023-12-23 08:40:41 +03:00
parent 8e28e3d86d
commit bf2c5b67e3
2 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,8 @@ schema = make_executable_schema(load_schema_from_path("schemas/core.graphql"), r
async def start_up():
await redis.connect()
views_stat_task = asyncio.create_task(ViewedStorage().worker())
print(views_stat_task)
# start viewed service
await ViewedStorage.init()
if MODE == "development":
# pid file management

View File

@ -72,6 +72,9 @@ class ViewedStorage:
if token:
self.client = create_client({"Authorization": f"Bearer {token}"}, schema=schema_str)
print("[services.viewed] * authorized permanently by ackee.discours.io: %s" % token)
views_stat_task = asyncio.create_task(self.worker())
print(views_stat_task)
else:
print("[services.viewed] * please set ACKEE_TOKEN")
self.disabled = True