Skip to content

Commit 5067010

Browse files
committed
upd doc.
1 parent de1ea2c commit 5067010

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Elastica/AsyncDoctrineOrmProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ protected function doPopulate($options, \Closure $loggerClosure = null)
7676
$limitTime = time() + 180;
7777
}
7878

79+
sleep(1);
80+
7981
if (time() > $limitTime) {
8082
throw new \LogicException(sprintf('No response in %d seconds', 180));
8183
}

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ Here's an example of what your EnqueueBundle configuration may look like:
6161
```yaml
6262
enqueue:
6363
transport:
64-
default: 'fs'
65-
fs:
66-
store_dir: %kernel.root_dir%/../var/messages
64+
default: 'file://%kernel.root_dir%/../var/messages'
6765
```
6866
6967
Sure you can configure other transports like: [rabbitmq, amqp, stomp and so on](https://github.com/php-enqueue/enqueue-dev/blob/master/docs/bundle/config_reference.md)
@@ -84,10 +82,16 @@ If you want to disable this behavior you can un register the bundle or use env v
8482
$ ENQUEUE_ELASTICA_DISABLE_ASYNC=1 ./bin/console fos:elastica:populate
8583
```
8684

87-
and have pull of consumer commands run somewhere, run them as many as you'd like
85+
Run some consumers either using client (you might have to enable it) consume command:
86+
87+
```bash
88+
$ ./bin/console enqueue:consume --setup-broker -vvv
89+
```
90+
91+
or a transport one:
8892

8993
```bash
90-
$ ./bin/console enqueue:transport:consume enqueue_elastica.populate_processor -vv
94+
$ ./bin/console enqueue:transport:consume enqueue_elastica.populate_processor -vvv
9195
```
9296

9397
We suggest to use [supervisor](http://supervisord.org/) on production to control numbers of consumers and restart them.

0 commit comments

Comments
 (0)