Spaces:
Running
on
Zero
Running
on
Zero
File size: 644 Bytes
7a919c0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# Copyright (c) OpenMMLab. All rights reserved.
import os
from loguru import logger
def redis_host():
host = os.getenv('REDIS_HOST')
if host is None or len(host) < 1:
raise Exception('REDIS_HOST not config')
return host
def redis_port():
port = os.getenv('REDIS_PORT')
if port is None:
logger.debug('REDIS_PORT not set, try 6379')
port = 6379
return port
def redis_passwd():
passwd = os.getenv('REDIS_PASSWORD')
if passwd is None or len(passwd) < 1:
raise Exception('REDIS_PASSWORD not config')
return passwd
def feature_store_base_dir():
return 'feature_stores'
|