KamoCRM

Gracefully cancel superseded reconversion jobs on rapid saves

FixDocsService
Shipped
16 ஏப்ரல், 2026 அன்று 3:59 PM UTC
Author
Kamo
Commit
2f05ab1

When a document is saved multiple times quickly, each save registers its ImgDat UUID in a ConcurrentHashMap. The async reconversion task checks this at 6 checkpoints (before start, after download, after PDF conversion, after PDF upload, before thumbnails, after thumbnail generation). If a newer save has replaced the expected ImgDat, the task exits immediately without writing stale results or orphaned records.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing