feat(demo): add demo-reset to wipe the demo's data volumes

demo-down / stop intentionally keep the Postgres and artifact volumes, so a
fresh start still carried old workers/jobs/tasks. Add a reset action (compose
down -v) and a make demo-reset target for a truly pristine restart.
This commit is contained in:
Efremenko Arhip
2026-07-27 16:48:06 +03:00
parent 9b235282fc
commit 2991ed202b
2 changed files with 19 additions and 2 deletions
+8 -1
View File
@@ -177,12 +177,19 @@ case "$action" in
compose down
echo "SciMesh manual demo stopped."
;;
reset)
# Like stop, but also drops the data volumes so the next start is pristine
# (empty Postgres, no leftover workers/jobs/tasks, no cached artifacts).
stop_workers
compose down -v
echo "SciMesh manual demo stopped and data volumes removed."
;;
logs)
echo "Worker logs: $logs_dir"
compose logs -f coordinator
;;
*)
echo "Usage: $0 {start|stop|logs}" >&2
echo "Usage: $0 {start|stop|reset|logs}" >&2
exit 2
;;
esac