Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Scoop7's avatar
Level 13

Redis::throttle() rate limiting explain release method()

https://laravel.com/docs/5.5/queues#rate-limiting what does the number 10 means (in release(10)..) ? seconds? I was not able to inspect this method in my IDE

P.S. There should be a channel for Redis

0 likes
2 replies
bobbybouwmann's avatar
Level 88

release(10) means that the job will be released 10 seconds later. It's just a delay parameter.

You can find it here in the code: https://github.com/laravel/framework/blob/56a58e0fa3d845bb992d7c64ac9bb6d0c24b745a/src/Illuminate/Queue/Jobs/RedisJob.php#L93

For each implementation this method is different. You can also see this method for the DatabaseJob for example: https://github.com/laravel/framework/blob/56a58e0fa3d845bb992d7c64ac9bb6d0c24b745a/src/Illuminate/Queue/Jobs/DatabaseJob.php#L50

It's a bit harder to search for this, since it has multiple traits and interfaces ;)

1 like
mm256's avatar

Quick question, how does this work with multiple servers interacting with one queue

Please or to participate in this conversation.