Skip to content

When crawling a batch can go in circles for a long time if it cannot do anything (eg broken locks) #197

@brendanheywood

Description

@brendanheywood

The crawler grabs a batch of 1000 rows, loops over them, if it can't get a lock then it moves on. But if it goes through the whole batch and doesn't get any locks it grabs the same batch again and just keeps looping.

In practice this isn't a big deal unless there is a broken lock and the queue is actually small so maybe this is more prevalent on a dev box.

  • Need some sort of lock cleanup the same as cron task cleanup?
  • Need to detect if the batch loop has done nothing and exit early

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