Skip to content

jobs that do not count to rate limit #2858

Open
@sakari

Description

@sakari

Is your feature request related to a problem? Please describe.

I use queue rate limiting to stay within limits of an external API I'm calling. Some jobs however do not require this call, eg the job might be too old and I just want to fail it. These jobs however, as far as I can see, count to the rate limit. So in the worst case a bunch of unimportant NOOP jobs that finish immediately prevent actual useful work from being done. In normal operation this would not be issue -- but in case there are some hickups that stop job processing for a longer duration having to process the stale jobs first would prolong the time to recovery.

Describe the solution you'd like

A way to return from the worker function that makes the job that was processed not count towards rate limits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions