Skip to content

Only grab from the queue when a worker is available #11

Description

@gerhard4

Currently, each instance seems to grab from the queue all there is, then creates its own internal queue with this. When multiple parallel rworker instances read from the same queue, this is bad. They don't know how long the tasks will run, so it could be that one gets a long-running task and the other is done after a few minutes, but the first has already grabbed the other tasks from the queue.

Each instance should only take from the queue what it can immediately run and leave all other requests in the queue, so that potential other instances can grab it if they have a worker available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions