Skip to content

[12.x] Implement releaseAfter method in RateLimited middleware #55671

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

Conversation

adamjgriffith
Copy link
Contributor

By default jobs with the RateLimited or RateLimitedWithRedis middleware are released with a delay equal to when the rate limiter is available again +3 (?) seconds. This is great for 99% of cases but occassionaly it can be useful to specify the delay manually. This PR implements that functionality leaning heavily on the implemetation used in the WithoutOverlapping middleware.

See: https://laravel.com/docs/12.x/queues#preventing-job-overlaps

@taylorotwell taylorotwell merged commit 67f3f84 into laravel:12.x May 7, 2025
60 checks passed
@adamjgriffith adamjgriffith deleted the feature/implement-release-after-for-rate-limited-job-middleware branch May 7, 2025 17:31
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

Successfully merging this pull request may close these issues.

2 participants