Skip to content

recache.py: add option to cache thumbs#74

Open
dominikl wants to merge 3 commits intoIDR:masterfrom
dominikl:recache_improvement
Open

recache.py: add option to cache thumbs#74
dominikl wants to merge 3 commits intoIDR:masterfrom
dominikl:recache_improvement

Conversation

@dominikl
Copy link
Copy Markdown
Member

See title.

@dominikl dominikl requested a review from will-moore March 23, 2026 11:34
print(f"Error processing object: {e}")

if args.thumbs:
objs = get_objects(conn, args.container, img_only=True)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could have added a line here to filter objs for "image" instead of changing your get_objects() function, but either approach is fine so no need to change.

objs = [obj for obj in objs if obj[[1] == "image"]

Copy link
Copy Markdown
Member

@will-moore will-moore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not used recache.py before and I haven't tested it just now but the code changes look fine.

If this is an important part of the IDR workflow, just need to make sure it's documented in the appropriate places. I expect we'll need to overhaul the IDR publishing docs with the migration soon.

@dominikl
Copy link
Copy Markdown
Member Author

I've just used for the idr0167 for next release :-) . But indeed, should be better documented, but need overhaul of that anyway after migration. I suspect we still need the (re-)caching workflow on new IDR too.

@will-moore
Copy link
Copy Markdown
Member

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants