fix(downloads): enqueue thumbnail + ML per attached image #46
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Downloaded images stayed at
thumbnail_path=NULLuntil a periodicbackfill sweep picked them up — gallery showed broken-thumbnail tiles
for hours after a download landed.
Importer.attach_in_placedeliberately skips inline thumbnailgeneration (importer.py:591-592) so the import queue stays moving;
the CALLING task is responsible.
tasks/import_file.py:228-239already does this.
tasks/download.py/download_servicedid not.Fix in
download_service._phase3_persist: after each successfulattach_in_place, fan outgenerate_thumbnail.delay()+tag_and_embed.delay()for eachimage_id. Lazy import to avoidcircular-import risk.
Test plan
bd06794the periodic backfill sweep
🤖 Generated with Claude Code