This commit is contained in:
4
main.py
4
main.py
@@ -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()
|
||||
|
Reference in New Issue
Block a user