You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resources/views/docs/desktop/1/digging-deeper/queues.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ Once you publish the NativePHP config file using `php artisan vendor:publish`, y
31
31
'queues' => ['high'],
32
32
'memory_limit' => 1024,
33
33
'timeout' => 600,
34
+
'sleep' => 3,
34
35
],
35
36
'four' => [
36
37
'queues' => ['high'],
@@ -52,8 +53,11 @@ If you do not provide values for any of these settings, the following sensible d
52
53
'queues' => ['default'],
53
54
'memory_limit' => 128,
54
55
'timeout' => 60,
56
+
'sleep' => 3,
55
57
```
56
58
59
+
The `sleep` parameter defines the number of seconds the worker will wait (sleep) when there are no new jobs available. A lower value means the worker polls for new jobs more frequently, which might be more responsive but uses more CPU. A higher value reduces CPU usage but may introduce a slight delay in processing newly added jobs.
60
+
57
61
### Managing workers
58
62
59
63
The handy `QueueWorker::up()` and `QueueWorker::down()` methods available on `Facades\QueueWorker` can be used to start
0 commit comments