fix: Increase placeholder staleness threshold to 5x scan interval

- Changed from 2x (120s) to 5x (300s) scan interval
- Large PDFs take 3-4 minutes to process, need longer threshold
- Prevents premature requeuing of in-flight documents
This commit is contained in:
Chris Coutinho
2025-11-20 15:36:49 +01:00
parent 47f0b3db9a
commit ec2c274cd9
2 changed files with 17 additions and 12 deletions
@@ -37,14 +37,17 @@ class HealthCheckFilter(logging.Filter):
"""
# Check if the log message contains health check endpoints
message = record.getMessage()
return not any(
endpoint in message
for endpoint in [
"/health/live",
"/health/ready",
"/metrics",
"/app/vector-sync/status",
]
return (
not any(
endpoint in message
for endpoint in [
"/health/live",
"/health/ready",
"/metrics",
"/app/vector-sync/status",
]
)
or "OpenCV not installed. Disabling OCR" in message
)