sheet upload fix
This commit is contained in:
@@ -169,24 +169,6 @@ BATCH_RETENTION_DAYS = int(os.getenv("BATCH_RETENTION_DAYS", "7"))
|
||||
# which is precisely how a slow start turns into an unrecoverable spiral.
|
||||
BATCH_AUTO_RESUME = _bool("BATCH_AUTO_RESUME", "false")
|
||||
|
||||
# --- Review inbox (a third party drops files; an admin decides) -------------
|
||||
# Files arrive here from POST /api/uploads/catalog and WAIT. Nothing in this
|
||||
# directory is ever executed until an admin selects it, which is the whole
|
||||
# security property of the feature: an uploader credential can consume bounded
|
||||
# disk but can never consume CPU on a one-vCPU host.
|
||||
INBOX_UPLOAD_DIR = _dir("INBOX_UPLOAD_DIR", DATA_DIR / "inbox")
|
||||
|
||||
# Per-file ceilings are the batch ones (10MB / 2000 rows). This bounds the
|
||||
# QUEUE: how many unreviewed files may accumulate before uploads are refused
|
||||
# with 429. Without it an unattended key fills the disk one valid file at a
|
||||
# time, and every one of them looks legitimate.
|
||||
INBOX_MAX_PENDING_FILES = int(os.getenv("INBOX_MAX_PENDING_FILES", "200"))
|
||||
|
||||
# Consumed and dismissed files are deleted this many days after upload.
|
||||
# Pending files are never purged - deleting something nobody has looked at yet
|
||||
# would lose a colleague's work silently.
|
||||
INBOX_RETENTION_DAYS = int(os.getenv("INBOX_RETENTION_DAYS", "7"))
|
||||
|
||||
# Pristine copies of the bundled seed catalogs and pre-trained models, placed
|
||||
# here by the Dockerfile at a path that is never itself mounted over.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user