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

Please add a retry interval for failed jobs #17

Open
mlambley opened this issue Feb 21, 2020 · 0 comments
Open

Please add a retry interval for failed jobs #17

mlambley opened this issue Feb 21, 2020 · 0 comments

Comments

@mlambley
Copy link

mlambley commented Feb 21, 2020

Right now when I have a job that fails (throws an Exception) and is requeued, the system immediately attempts to run it $maxRetries times and then fails altogether.

In the case where the error is caused by a network issue or a third-party system being down, waiting an amount of time before trying again would be beneficial.

I suggest implementing a field in mq-mysql\Api\Data\QueueMessageInterface named something like run_task_at. That way tasks can be scheduled to run in the future. And then have a retry interval, perhaps a number of seconds, configurable in StartConsumerCommand (and preferably the ceQueue xml as well - see #16).

I haven't looked into your mq-amqp module but I imagine that a similar thing could be implemented there too.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant