Skip to content

BulkImageScrape: some images are missed #772

Description

@punamust

I have a custom scraper which returns a tag in every imageByFragment scrape: one tag when the scraper succeeded and another when it failed (this makes it easier to debug where it didn't work).
I used BulkImageScrape with this scraper, expecting all images to be tagged at the end, but that wasn't the case: some images were somehow missed and had neither tag.

I could then add the two tags (the success and the failure one) to the skipped tags option of BulkImageScrape and re-run it. That way I can re-run it only on the missed ones.
I had to repeat this process ~15 times until all ~64k of my images ended up tagged.

Every time it reports the correct number of untagged images in the [Plugin / Bulk Image Scrape] Found X images log message, but when iterating over them in pages of 100, some are somehow missed.

Even though I've looked at the code recently to make some PRs, nothing stands out to me why this should be happening.
I'm not sure what's the point of it querying images in pages of 100 when it initially queries them all anyway, but perhaps it's a problem that some images are modified while simultaneously iterating over them.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions