fix(ops): harden backend startup and worker recovery

Install modular API, voice and embedding extras and use the supported single-process server entrypoint. Drain worker SIGTERM shutdown within the Compose grace period.

Add isolated HTTPS embedding fixtures, bounded intake execution and reproducible account, publication, restart, lease-recovery and shutdown acceptance. Eight operational scenarios passed with zero real-provider calls.
This commit is contained in:
11linear11
2026-10-09 17:44:04 -04:00
parent a73a496c54
commit 42f5b9e854
9 changed files with 760 additions and 5 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ COPY pyproject.toml /app/
# Stub package to leverage Docker layer caching for pip dependencies
RUN mkdir -p /app/app && touch /app/app/__init__.py \
&& pip install --no-cache-dir -e ".[prototype,embedding]"
&& pip install --no-cache-dir -e ".[api,voice,embedding]"
# Copy application source code and migrations
COPY app/ /app/app/
@@ -34,4 +34,4 @@ RUN pip install --no-deps -e .
EXPOSE 8000
# Default command: FastAPI API server
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["python", "-m", "app.server", "--host", "0.0.0.0", "--port", "8000"]