Skip to content

Limiting the worker jobs per time #720

@kkretsch

Description

@kkretsch

I'm somehow stuck in configuring the queues. I currently get on occasion a bunch of jobs into the queue in the amount of up to hundreds and need to limit the worker running the jobs to let's say one job per second.

Is there any elegant way to do this or do I need to write some plugin for this?

Just adding a plain sleep into the end of the job function doesn't help, because it either consumes valuable time running in a loop or if I use some async way the jobs suddenly run in parallel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions