Skip to content

Commit cc31366

Browse files
author
Oliver Stark
committed
v1.3 docs, +cleanup
1 parent a40daef commit cc31366

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ The plugin uses [symfony/process](https://github.com/symfony/process) to execute
2525
```
2626
PHP_BINARY="/usr/local/Cellar/php71/7.1.0_11/bin/php"
2727
```
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.
2931
```
3032
# No concurrency
3133
ASYNC_QUEUE_CONCURRENCY=1
3234
33-
# max 5 background processes
35+
# Or max 5 background processes
3436
ASYNC_QUEUE_CONCURRENCY=5
3537
```
3638

39+
3740
## Under the hood: Process list
3841

3942
**Empty queue** (only php-fpm master is running)

src/QueuePool.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ public function decrement()
7575

7676
if ($poolUsage > 1) {
7777
$this->cache->set(self::CACHE_KEY, $poolUsage - 1, $this->lifetime);
78-
}
79-
else {
78+
} else {
8079
$this->cache->delete(self::CACHE_KEY);
8180
}
8281
}

0 commit comments

Comments
 (0)