-
Notifications
You must be signed in to change notification settings - Fork 422
Laravel 5.5 Delay between retries (failed jobs) not working #156
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
Comments
you could try this #154. The delay should work there. The delaying code has already been heavily tested. |
Hi @makasim , I'm trying your PR. I just change: composer.json .env If no errors, works fine (ok :D), but when error occurs, failes when try to add job on failed_job table: Integrity constraint violation: 1048 Column 'queue' cannot be null . Also, good news is delay between failed jobs works fine!:
I think the problem is related with $queue attribute in RabbitMQJob. with this changes, queue attribute is not filled, and this attribute is used on vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:186 |
@vrubiella thank you for reporting it. I'll look into it. |
I confirm you, adding this line on RabbitMQJob constructor, bug was fixed:
|
@vrubiella don't you mind sending a fix to https://github.com/formapro-forks/laravel-queue-rabbitmq/tree/amqp-interop as a PR? |
Hi Vladimir,
When I run this command:
php artisan queue:work rabbitmq --sleep=2 --tries=3 --delay=20 --daemon
Failed jobs are requeued without delay (20s).
Also, when I check attemps() for a job, always returns 1.
this is my queue conf:
The text was updated successfully, but these errors were encountered: