Fix race condition in thumbnail candidate generation

Concurrent requests for the same course's thumbnail (e.g. the
Precompute background scan overlapping an ordinary page load) shared
fixed candidate filenames, so one request's cleanup could delete a
temp file the other was still using, crashing with ENOENT. Candidate
filenames are now unique per call.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-24 20:27:08 -04:00
co-authored by Claude Sonnet 5
parent 36d9e7f89b
commit de9c05d0d0
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
2026-08-25 00:20 UTC — autoplay, progress rings, duplicate lessons, title-card thumbnails
2026-08-25 00:26 UTC — fix race condition in thumbnail candidate generation