Feature Elimination backend

This commit is contained in:
sriram
2026-08-31 16:31:43 +05:30
parent 164ef90b31
commit a6e78fee95
7 changed files with 25 additions and 350 deletions

View File

@@ -44,12 +44,19 @@ httpx>=0.27.2
# you can skip everything below this line.
# Retry/backoff for the barcode enrichment sources
# (app/services/enrichment/barcode/retry.py). This is NOT an optional extra:
# retry.py imports it at module scope, and that module is reached from
# app/main.py's own import of the store_catalog router - so a missing tenacity
# is not a degraded feature, it is the container exiting 1 on boot with
# ModuleNotFoundError before uvicorn ever binds a socket. Swarm then restarts
# it, and each restart re-runs ~21s of pandas/scipy/sklearn imports, which on a
# 1-vCPU host reads as pinned-at-100% CPU rather than as a crash.
# retry.py imports it at module scope, and that module is reached at BOOT, via
# app/main.py -> routers/{uploads,batch_catalog} -> api/batch_common
# -> core/store_catalog_pipeline -> enrichment/barcode/retry
# so a missing tenacity is not a degraded feature, it is the container exiting 1
# on boot with ModuleNotFoundError before uvicorn ever binds a socket. Swarm
# then restarts it, and each restart re-runs ~21s of pandas/scipy/sklearn
# imports, which on a 1-vCPU host reads as pinned-at-100% CPU rather than as a
# crash.
#
# This note used to name the store_catalog router as the importer. That router
# was deleted with the Store Catalog Ingestion tab; the chain above is the one
# that survives, and it runs through every remaining ingestion route. Re-check
# it here before ever concluding this dependency has become unused.
tenacity>=8.2.3
beautifulsoup4>=4.12.3