local-llm-server/llm_server/pre_fork.py

10 lines
260 B
Python

import sys
from llm_server.custom_redis import redis
def server_startup(s):
if not redis.get('daemon_started', dtype=bool):
print('Could not find the key daemon_started in Redis. Did you forget to start the daemon process?')
sys.exit(1)