fix: prevent server crashes during photo processing #4

Merged
tanyar09 merged 1 commits from fix/database-connection-crash-prevention into dev 2026-01-21 12:58:08 -05:00
Collaborator
  • Add database connection health checks every 10 photos
  • Add session refresh logic to recover from connection errors
  • Improve error handling for database disconnections/timeouts
  • Add explicit image cleanup to prevent memory leaks
  • Add connection error detection throughout processing pipeline
  • Gracefully handle database connection failures instead of crashing

Fixes issue where server would crash during long-running photo processing
tasks when database connections were lost or timed out.

- Add database connection health checks every 10 photos - Add session refresh logic to recover from connection errors - Improve error handling for database disconnections/timeouts - Add explicit image cleanup to prevent memory leaks - Add connection error detection throughout processing pipeline - Gracefully handle database connection failures instead of crashing Fixes issue where server would crash during long-running photo processing tasks when database connections were lost or timed out.
tanyar09 added 1 commit 2026-01-21 11:59:33 -05:00
fix: prevent server crashes during photo processing
Some checks failed
CI / skip-ci-check (pull_request) Successful in 1m48s
CI / lint-and-type-check (pull_request) Failing after 2m26s
CI / python-lint (pull_request) Failing after 2m12s
CI / test-backend (pull_request) Successful in 4m2s
CI / build (pull_request) Successful in 4m53s
CI / secret-scanning (pull_request) Successful in 1m56s
CI / dependency-scan (pull_request) Successful in 1m54s
CI / sast-scan (pull_request) Successful in 3m6s
CI / workflow-summary (pull_request) Failing after 1m47s
0d37fe07ca
- Add database connection health checks every 10 photos
- Add session refresh logic to recover from connection errors
- Improve error handling for database disconnections/timeouts
- Add explicit image cleanup to prevent memory leaks
- Add connection error detection throughout processing pipeline
- Gracefully handle database connection failures instead of crashing

Fixes issue where server would crash during long-running photo processing
tasks when database connections were lost or timed out.
tanyar09 force-pushed fix/database-connection-crash-prevention from 0d37fe07ca to f9fafcbb1a 2026-01-21 12:47:01 -05:00 Compare
tanyar09 merged commit f879e660a4 into dev 2026-01-21 12:58:08 -05:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ilia/punimtag#4
No description provided.