precache-fix
All checks were successful
deploy / deploy (push) Successful in 1m5s

This commit is contained in:
2023-12-19 18:13:37 +03:00
parent 531eb1f028
commit 95a237f349
8 changed files with 21 additions and 29 deletions

View File

@@ -19,10 +19,6 @@ schema = make_executable_schema(load_schema_from_path("inbox.graphql"), resolver
async def start_up():
# load authors cache
authors = await get_all_authors()
print(f"[main] {len(authors)} authors precached")
if MODE == "dev":
if exists(DEV_SERVER_PID_FILE_NAME):
await redis.connect()