Commit Graph

  • 10d02dc07a default to refer to pulmo when no DLCO main wbruno 2026-07-17 14:18:59 -04:00
  • 61ec5797f9 default to refer to pulmo when no DLCO wbruno 2026-07-17 14:17:48 -04:00
  • de0b3ccdbc Implemented the memory fix. Changed app.py: • process_pft_pdf() now uses the uploaded file stream directly instead of copying the PDF into bytes. • Output now uses SpooledTemporaryFile, so larger generated PDFs spill to disk instead of staying fully in RAM. • Explicitly closes PdfReader objects after writing. • Removed @app.teardown_request gc.collect(), which was running too early and could break send_file. • Added response.call_on_close() cleanup so the generated PDF stream is closed only after Flask/Werkzeug finishes sending it. Changed Dockerfile: • Added Gunicorn --max-requests 50 --max-requests-jitter 10 as a production guardrail against PDF-library or allocator memory growth. wbruno 2026-06-14 19:04:04 -04:00
  • b8bb31842a First Commit wbruno 2026-06-11 01:40:32 -04:00