- Dockerfile: ENV INSIGHTFACE_HOME=/models → /models/.insightface to match compose.yml and .env.example; the old value caused InsightFace to store models at /models/models/buffalo_l (double-appended subdir) - entrypoint.sh: use /app/.venv/bin/winnow (installed entry point) instead of python -m winnow.cli - config.py: ENABLE_CACHE default false → true; embedding cache is always beneficial in practice; users can opt out with ENABLE_CACHE=false - compose.yml: comment out CRON_SCHEDULE so scheduling is opt-in; flip ENABLE_CACHE to commented opt-out to reflect new default - README.md: update ENABLE_CACHE default documentation to true - tests/test_config.py: update default assertion to match Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
423 B
Bash
18 lines
423 B
Bash
#!/bin/bash
|
|
set -e
|
|
export PYTHONUNBUFFERED=1
|
|
|
|
# 1. Run the job immediately on startup
|
|
echo "▶ Running on startup..."
|
|
/app/.venv/bin/winnow
|
|
|
|
# 2. If a schedule exists, start the scheduler
|
|
if [ -n "${CRON_SCHEDULE:-}" ]; then
|
|
echo "▶ CRON_SCHEDULE set to: $CRON_SCHEDULE"
|
|
echo "▶ Switching to scheduled mode..."
|
|
exec /app/.venv/bin/python /app/scheduler.py
|
|
else
|
|
echo "▶ No schedule set, exiting."
|
|
fi
|
|
|