Migrate MLflow backend to PostgreSQL and fix .env loading
- Add python-dotenv loading in main.py so DATABASE_URL is read from .env before db.py module initializes - Add MLFLOW_TRACKING_URI to .env.example pointing to PostgreSQL - Add python-dotenv>=1.0.0 to pyproject.toml dependencies - Initialize MLflow schema in candle_annotator PostgreSQL database MLflow server now starts without filesystem deprecation warnings and with full job execution support. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5fb9733bd6
commit
76cb49e908
3 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
DATABASE_URL=postgresql://pg_user:pg_password@localhost:5432/candle_annotator
|
||||
MLFLOW_TRACKING_URI=postgresql://pg_user:pg_password@localhost:5432/candle_annotator
|
||||
# openssl rand -hex 32 add to main .env too
|
||||
API_KEY=ML_API_KEY
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue