Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error for an invalid job #19

Open
HarshBalyan opened this issue Jun 19, 2020 · 0 comments
Open

Return error for an invalid job #19

HarshBalyan opened this issue Jun 19, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@HarshBalyan
Copy link
Member

HarshBalyan commented Jun 19, 2020

An invalid job is accepted. It fails and then gets retried for the configured number of times.
An invalid job can be defined to have one or more of the following set incorrectly

  • queue name
  • worker module
  • worker function

Fix

A job in the aforementioned case is bound to fail and eventually move to the dead queue.
Therefore, we can return an error before enqueing in such cases by checking the following:

  • Check the queue name against the configured pipelines
  • Check existence of the worker module
  • Check existence of worker function(name + arity)
@HarshBalyan HarshBalyan added the enhancement New feature or request label Jun 19, 2020
@vasuadari vasuadari added the good first issue Good for newcomers label May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants