mirror of
https://github.com/archtechx/jobpipeline.git
synced 2025-12-13 05:24:03 +00:00
docs updated
This commit is contained in:
parent
63f58e6a99
commit
719fc32d9b
1 changed files with 3 additions and 1 deletions
|
|
@ -73,6 +73,7 @@ If you want to push the job to a different queue, you can pass a string as a par
|
||||||
The following methods are available too, for further configuration if needed:
|
The following methods are available too, for further configuration if needed:
|
||||||
- `onConnection(string $connection)`
|
- `onConnection(string $connection)`
|
||||||
- `onQueue(string $queue)`
|
- `onQueue(string $queue)`
|
||||||
|
- `timeout(int $timeoutInSeconds)`
|
||||||
- `delay($delay)`
|
- `delay($delay)`
|
||||||
- `tries($tries)`
|
- `tries($tries)`
|
||||||
|
|
||||||
|
|
@ -92,7 +93,8 @@ JobPipeline::make([
|
||||||
})->shouldBeQueued(true)
|
})->shouldBeQueued(true)
|
||||||
->onConnection('connection-different-from-default')
|
->onConnection('connection-different-from-default')
|
||||||
->onQueue('queue-different-from-default')
|
->onQueue('queue-different-from-default')
|
||||||
->delay(5)
|
->timeout(180)
|
||||||
|
->delay(15)
|
||||||
->tries(2);
|
->tries(2);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue