All persistent data generated by MLflow Jedi lives in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/elenacarino-max/Pildora4_ext_StarWars/llms.txt
Use this file to discover all available pages before exploring further.
DATA_DIR folder — by default data/ relative to app-v2/. This single directory contains everything needed to restore or migrate a deployment: the game database with team progress and scores, the MLflow tracking database with every experiment run, and the artifact files produced during missions. Keeping this folder intact is equivalent to keeping a complete snapshot of any classroom session.
Storage layout
Thedata/ directory is created automatically on first startup if it does not exist. Its internal structure is fixed:
| File / folder | Contents |
|---|---|
game.db | All session codes, team names, chamber attempts, hint counts, forced advances, scores, and final defenses |
mlflow.db | MLflow experiment metadata: experiment names, run IDs, run names, logged parameters, metrics, and artifact paths |
artifacts/ | Binary and JSON artifact files written by missions — confusion matrix PNGs, classification report JSON files, and the serialised scikit-learn models stored under artifacts/mlflow/ |
Docker volumes
Thedocker-compose.yml file declares a named volume that maps the container’s /app/data directory to persistent Docker-managed storage:
mlflow_jedi_data has two important properties:
- It survives
docker compose downand image rebuilds. Stopping and restarting the stack — even afterdocker compose build— does not touch the volume. - It is stored outside the project directory, managed entirely by Docker. You cannot browse it directly with a file manager without explicitly mounting it.
Backup procedure
Back up data at the end of every classroom session and before any update or infrastructure change.Export from the teacher panel
Log in to the Profesorado panel and use the export buttons to download a
full JSON backup and a summary CSV. These files capture all team data, run
results, and defenses in a portable format that does not require a running
database to read.
Stop the application
Gracefully stop the app before copying SQLite files:Or press Ctrl+C if running locally without Docker.
Copy the data/ directory
Copy the entire On Windows (PowerShell):
data/ folder to a safe location outside the project:Manual SQLite backup
If you need to back up the raw database files directly (for example, to restore a specific run in MLflow’s UI), copy bothgame.db and mlflow.db while the application is stopped.
Never copy SQLite files while the app is running. Copying a live database risks catching the file mid-write and producing a corrupt backup. The application uses WAL mode (journal_mode=WAL) for better concurrent read performance, which means there may also be -wal and -shm sidecar files in data/ during operation — these are automatically consolidated on clean shutdown.
Update procedure
Follow these steps whenever you apply a code update or rebuild the Docker image to ensure data integrity.Start with the same persistent volume
Bring the stack back up — the existing
mlflow_jedi_data volume is
automatically reattached: