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