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

WithoutOverlapping key "laravellaravel-queue-overlap:" #1509

Open
maxvisser opened this issue Oct 21, 2024 · 1 comment
Open

WithoutOverlapping key "laravellaravel-queue-overlap:" #1509

maxvisser opened this issue Oct 21, 2024 · 1 comment

Comments

@maxvisser
Copy link

maxvisser commented Oct 21, 2024

Horizon Version

^5.19

Laravel Version

^11.0

PHP Version

8.3.8

Redis Driver

Predis

Redis Version

^2.2

Database Driver & Version

No response

Description

When we forcefull terminate a horizon supervisor without running horizon:terminate. It can leave a overlapping key in Redis which does not have a TTL.

"laravellaravel-queue-overlap:"

I would be nice if the overlapping key would have a TTL or that the dashboard shows that the maxAttempts are reached because of it failing instantly as there is an overlapping key set.

As there is no visual indication in the dashboard that the job failed based on failing because of a maxAttempt this was not an obvious problem to resolve for us.

Restarting horizon supervisors or the container which executes the master process also does not resolve this issue.

Steps To Reproduce

When you queue a job with ->WithoutOverlapping and it is excecuted on your queue, keep the overlapping key in your redis. All new jobs will go directly to their maxAttempts.

Copy link

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!

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

No branches or pull requests

2 participants