Skip to content

Job Retries Configuration Are Not Respected #3

@devhammed

Description

@devhammed

Hello there,

Thank you for the work on this package, but the worker does not respect the specific job retries configuration, no matter how I configured it:

Image

Now, if you look at this error, you can see the context has 4 attempts instead of failing on the first execution as expected:

Image

And another context is this error message when I enabled NODE_DEBUG:

Image

You can see the worker is still seeing the global maxRetries setup instead of the one on the job.

Another issue you can notice is that the original error that happened is lost forever because what is passed to the failed method is E_JOB_MAX_ATTEMPTS_REACHED, which does not have any information whatsoever about the original error.

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