File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,18 @@ The plugin uses [symfony/process](https://github.com/symfony/process) to execute
25
25
```
26
26
PHP_BINARY="/usr/local/Cellar/php71/7.1.0_11/bin/php"
27
27
```
28
- By default ` 2 ` background processes handle the queue. With the ` ASYNC_QUEUE_CONCURRENCY ` ENV var you can modify this behaviour
28
+
29
+
30
+ By default ` 2 ` background processes handle the queue. With the ` ASYNC_QUEUE_CONCURRENCY ` ENV var you can modify this behaviour.
29
31
```
30
32
# No concurrency
31
33
ASYNC_QUEUE_CONCURRENCY=1
32
34
33
- # max 5 background processes
35
+ # Or max 5 background processes
34
36
ASYNC_QUEUE_CONCURRENCY=5
35
37
```
36
38
39
+
37
40
## Under the hood: Process list
38
41
39
42
** Empty queue** (only php-fpm master is running)
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ public function decrement()
75
75
76
76
if ($ poolUsage > 1 ) {
77
77
$ this ->cache ->set (self ::CACHE_KEY , $ poolUsage - 1 , $ this ->lifetime );
78
- }
79
- else {
78
+ } else {
80
79
$ this ->cache ->delete (self ::CACHE_KEY );
81
80
}
82
81
}
You can’t perform that action at this time.
0 commit comments