From 96184f5a76687841a0849204a3d02d9ac0cd08fb Mon Sep 17 00:00:00 2001 From: Jonathan Martins Date: Thu, 2 Mar 2023 14:21:14 -0300 Subject: [PATCH] update README --- README.md | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 3c3112c..1f289c8 100644 --- a/README.md +++ b/README.md @@ -68,14 +68,7 @@ JobPipeline::make([ })->shouldBeQueued(true) ``` -If you want to push the job to a different queue, you can pass a string as a parameter, instead of a boolean: `shouldBeQueued('another-queue')`. - -The following methods are available too, for further configuration if needed: -- `onConnection(string $connection)` -- `onQueue(string $queue)` -- `timeout(int $timeoutInSeconds)` -- `delay($delay)` -- `tries($tries)` +If you want to push the job to a different queue, you can pass a string as a second parameter: ```php send(function (TenantCreated $event) { return $event->tenant; -})->shouldBeQueued(true) - ->onConnection('connection-different-from-default') - ->onQueue('queue-different-from-default') - ->timeout(180) - ->delay(15) - ->tries(2); +})->shouldBeQueued(true, 'another-queue'); ``` Finally, convert the pipeline to a listener and bind it to an event: