openreader/compute/worker
Richard R c0de2156fe refactor(documents): centralize owned document deletion and add mutation locking
Introduce `deleteOwnedDocument` utility to encapsulate all logic for removing a user's ownership of a document, including TTS segment cache cleanup, preview artifact removal, and S3 blob deletion for last-owner cases. Add `withDocumentMutationLock` to serialize concurrent mutations on the same document, using advisory locks in Postgres and a local queue fallback. Refactor all API routes and user data flows to use these utilities, ensuring transactional safety and preventing race conditions during document deletion or transfer. Update tests for new flows and add coverage for document cleanup sequencing and locking behavior.
2026-06-06 18:09:47 -06:00
..
src refactor(documents): centralize owned document deletion and add mutation locking 2026-06-06 18:09:47 -06:00
tests refactor(documents): centralize owned document deletion and add mutation locking 2026-06-06 18:09:47 -06:00
.env.example Fix container crash on startup: onnxruntime-node requires glibc (switch Alpine → Debian slim) (#97) 2026-06-02 20:50:37 -06:00
docker-compose.yml Fix container crash on startup: onnxruntime-node requires glibc (switch Alpine → Debian slim) (#97) 2026-06-02 20:50:37 -06:00
Dockerfile refactor(worker): unify port environment variable usage and update deployment docs 2026-05-20 17:05:35 -06:00
package.json feat(build): improve Docker image layering and embed migration/worker tools 2026-06-03 14:08:33 -06:00
tsconfig.json refactor(worker): modularize worker entrypoint and add vitest infra 2026-05-30 11:00:01 -06:00