From fbb22f891424db73c84a8a9d62cbbc21547b0d16 Mon Sep 17 00:00:00 2001 From: Kennedy Tedesco Date: Wed, 11 Sep 2024 18:34:33 -0300 Subject: [PATCH 1/4] [11.x] Add dispatching without delay section --- queues.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/queues.md b/queues.md index a324913faf4..80f3f2f2cf5 100644 --- a/queues.md +++ b/queues.md @@ -764,6 +764,18 @@ If you would like to specify that a job should not be immediately available for > [!WARNING] > The Amazon SQS queue service has a maximum delay time of 15 minutes. + +#### Dispatching Without Delay + +In some cases, jobs may have a default delay configured. If you need to bypass this default and dispatch a job for immediate processing, you may use the `withoutDelay()` method. + +For example, the following code will dispatch a `ProcessPodcast` job without any delay: + + ProcessPodcast::dispatch($podcast)->withoutDelay(); + +> [!NOTE] +> The `withoutDelay()` method is useful when you want to override any default delay configurations and ensure the job is processed as soon as possible. + #### Dispatching After the Response is Sent to the Browser From 364ab2c9b3b9d8aaf9e5e1dfb80dac857fb88e63 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 13 Sep 2024 11:14:06 -0500 Subject: [PATCH 2/4] formatting --- queues.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/queues.md b/queues.md index 80f3f2f2cf5..1a6567de20e 100644 --- a/queues.md +++ b/queues.md @@ -761,20 +761,12 @@ If you would like to specify that a job should not be immediately available for } } -> [!WARNING] -> The Amazon SQS queue service has a maximum delay time of 15 minutes. - - -#### Dispatching Without Delay - -In some cases, jobs may have a default delay configured. If you need to bypass this default and dispatch a job for immediate processing, you may use the `withoutDelay()` method. - -For example, the following code will dispatch a `ProcessPodcast` job without any delay: +In some cases, jobs may have a default delay configured. If you need to bypass this and dispatch a job for immediate processing, you may use the `withoutDelay()` method: ProcessPodcast::dispatch($podcast)->withoutDelay(); -> [!NOTE] -> The `withoutDelay()` method is useful when you want to override any default delay configurations and ensure the job is processed as soon as possible. +> [!WARNING] +> The Amazon SQS queue service has a maximum delay time of 15 minutes. #### Dispatching After the Response is Sent to the Browser From 23182b2bab518f07511500d1dc50b66367707df6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 13 Sep 2024 11:14:26 -0500 Subject: [PATCH 3/4] word --- queues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queues.md b/queues.md index 1a6567de20e..a7ee7579c43 100644 --- a/queues.md +++ b/queues.md @@ -761,7 +761,7 @@ If you would like to specify that a job should not be immediately available for } } -In some cases, jobs may have a default delay configured. If you need to bypass this and dispatch a job for immediate processing, you may use the `withoutDelay()` method: +In some cases, jobs may have a default delay configured. If you need to bypass this delay and dispatch a job for immediate processing, you may use the `withoutDelay()` method: ProcessPodcast::dispatch($podcast)->withoutDelay(); From a66dce715455bb2cc4ecf8a680037fcffb723d6d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 13 Sep 2024 11:14:42 -0500 Subject: [PATCH 4/4] formatting --- queues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queues.md b/queues.md index a7ee7579c43..bb2d90f91a7 100644 --- a/queues.md +++ b/queues.md @@ -761,7 +761,7 @@ If you would like to specify that a job should not be immediately available for } } -In some cases, jobs may have a default delay configured. If you need to bypass this delay and dispatch a job for immediate processing, you may use the `withoutDelay()` method: +In some cases, jobs may have a default delay configured. If you need to bypass this delay and dispatch a job for immediate processing, you may use the `withoutDelay` method: ProcessPodcast::dispatch($podcast)->withoutDelay();