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

VoidMrVoid's avatar

How does "retry_after" actually work?

Hi. I can't get how does the queue "retry_after" actually work. Here is an example (Notice: for this example default queue execution timeout = 60 seconds)

If I specify retry_after to 90 seconds, what it will do:

  • wait 90 seconds after the job failed and start it over
  • subtract retry_after from default timeout (90s - 60s) and will retry the failed job after 30 seconds?
0 likes
2 replies
jekinney's avatar

Over on the laravel docs under prologue, you have API documentation.

This will list all the classes and functions etc.

https://laravel.com/api/5.7/Illuminate/Queue/Console/RetryCommand.html#method_retryJob

So if you look at the right side, very tiny "at line68" is a link to the source code on github.

https://github.com/laravel/framework/blob/5.7/src/Illuminate/Queue/Console/RetryCommand.php#L68

Obviously, you need to also track down the called functions too.

Please or to participate in this conversation.