mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 18:18:47 +01:00
Both startup backfills asked whether their job id existed and then enqueued it, which two instances starting together can both get past. RQ does the check, the save and the push in one Lua call and raises DuplicateJobError, so the race closes and the pre-check goes. While here, enqueue them by name like every other task, so neither payload carries a pickled task instance. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>