added local catch for EFS OS/permissions issues
This commit is contained in:
@@ -11,6 +11,11 @@ ROOT_DIR = Path(__file__).parent.parent.absolute()
|
||||
LOGS_DIR = Path(ROOT_DIR, "logs")
|
||||
LOGS_DIR.mkdir(parents=True, exist_ok=True)
|
||||
EFS_DIR = Path(f"/efs/shared_storage/madewithml/{os.environ.get('GITHUB_USERNAME', '')}")
|
||||
try:
|
||||
Path(EFS_DIR).mkdir(parents=True, exist_ok=True)
|
||||
except OSError:
|
||||
EFS_DIR = Path(ROOT_DIR, "efs")
|
||||
Path(EFS_DIR).mkdir(parents=True, exist_ok=True)
|
||||
|
||||
# Config MLflow
|
||||
MODEL_REGISTRY = Path(f"{EFS_DIR}/mlflow")
|
||||
|
||||
Reference in New Issue
Block a user