Import page in the web UI, worker service and import monitoring
- New Import page: upload an export (with upload progress) or, when the server has a Last.fm API key, import straight from a Last.fm username; jobs list with live progress, counts, errors and cancelling - docker compose runs the import worker from the API image; the API image no longer sets PROMETHEUS_MULTIPROC_DIR (gunicorn.conf.py does, and other commands must not inherit multiprocess mode) - Prometheus scrapes the worker; Usage dashboard gains an Imports row; ImportWorkerDown and ImportJobsWaiting alerts - README and .env.example document imports and LASTFM_API_KEY Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
This commit is contained in:
1 parent
eebd7b8730
commit
e40a074a64
12 files changed
+754
-3
No files matched your search
@@ -15,9 +15,10 @@ RUN useradd --system --uid 10001 --no-create-home scrobbler
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/.venv /app/.venv
|
||||
COPY gunicorn.conf.py docker/api-entrypoint.sh ./
|
||||
# PROMETHEUS_MULTIPROC_DIR is set by gunicorn.conf.py for the API only: prometheus_client
|
||||
# enters multiprocess mode whenever it's set, which other commands (the worker) don't want.
|
||||
ENV PATH=/app/.venv/bin:$PATH \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PROMETHEUS_MULTIPROC_DIR=/tmp/scrobbler-metrics \
|
||||
BIND=0.0.0.0:8000 \
|
||||
METRICS_PORT=9100 \
|
||||
OPENAPI_DOCS_ENABLED=1
|
||||
|
||||
Reference in new issue
Block a user