From fffed09681c50a67a457c9d9bd68aa014cd45297 Mon Sep 17 00:00:00 2001 From: Amir Hossein Shokri <123773211+amirhshokri@users.noreply.github.com> Date: Fri, 16 May 2025 00:26:01 +0330 Subject: [PATCH 1/2] Update queues.md --- queues.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/queues.md b/queues.md index 73cf74504cd..f694a5ca755 100644 --- a/queues.md +++ b/queues.md @@ -1253,6 +1253,9 @@ public function retryUntil(): DateTime } ``` +> [!NOTE] +> If both `retryUntil` and a `tries` limit are defined, Laravel will prioritize the `retryUntil` method. This means the job may be attempted multiple times until the given time expires, even if the configured `tries` limit is exceeded. + > [!NOTE] > You may also define a `tries` property or `retryUntil` method on your [queued event listeners](/docs/{{version}}/events#queued-event-listeners). From 27611568d6323e937fd1b449c0bd9b1da542df39 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 15 May 2025 16:17:45 -0500 Subject: [PATCH 2/2] Update queues.md --- queues.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/queues.md b/queues.md index f694a5ca755..810a6b7aff5 100644 --- a/queues.md +++ b/queues.md @@ -1253,8 +1253,7 @@ public function retryUntil(): DateTime } ``` -> [!NOTE] -> If both `retryUntil` and a `tries` limit are defined, Laravel will prioritize the `retryUntil` method. This means the job may be attempted multiple times until the given time expires, even if the configured `tries` limit is exceeded. +If both `retryUntil` and `tries` are defined, Laravel gives precedence to the `retryUntil` method. > [!NOTE] > You may also define a `tries` property or `retryUntil` method on your [queued event listeners](/docs/{{version}}/events#queued-event-listeners).