Skip to content

Conversation

OussamaMater
Copy link
Contributor

@OussamaMater OussamaMater commented Aug 19, 2025

This PR fixes a small misleading detail about how Horizon handles retries when the $tries option is omitted. In such cases, Horizon retries indefinitely, as opposed to the current docs which state it defaults to 1.

You can test this easily by:

  • Creating a fresh Laravel app
  • Installing Horizon
  • Omitting the $tries option
  • Dispatching any job that throws an exception in its handle() method

You will see that the job is retried indefinitely instead of being marked as failed after the first attempt.

For reference, here is where the default value is defined if no tries are set:

@taylorotwell taylorotwell merged commit aed4978 into laravel:12.x Aug 20, 2025
taylorotwell added a commit that referenced this pull request Aug 20, 2025
This reverts commit aed4978.
taylorotwell added a commit that referenced this pull request Aug 20, 2025
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