aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/en/developer/rabbitmq.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/en/developer/rabbitmq.rst')
-rw-r--r--docs/en/developer/rabbitmq.rst26
1 files changed, 22 insertions, 4 deletions
diff --git a/docs/en/developer/rabbitmq.rst b/docs/en/developer/rabbitmq.rst
index a17e6e4d..8cee45fb 100644
--- a/docs/en/developer/rabbitmq.rst
+++ b/docs/en/developer/rabbitmq.rst
@@ -1,7 +1,7 @@
1Install RabbitMQ for asynchronous tasks 1Install RabbitMQ for asynchronous tasks
2======================================= 2=======================================
3 3
4In order to launch asynchronous tasks (useful for huge imports for example), we use RabbitMQ. 4In order to launch asynchronous tasks (useful for huge imports for example), we can use RabbitMQ.
5 5
6Requirements 6Requirements
7------------ 7------------
@@ -37,13 +37,31 @@ Stop RabbitMQ
37Configure RabbitMQ in wallabag 37Configure RabbitMQ in wallabag
38------------------------------ 38------------------------------
39 39
40Edit your ``parameters.yml`` file to edit RabbitMQ configuration. 40Edit your ``parameters.yml`` file to edit RabbitMQ configuration. The default one should be ok:
41
42.. code:: yaml
43
44 rabbitmq_host: localhost
45 rabbitmq_port: 5672
46 rabbitmq_user: guest
47 rabbitmq_password: guest
48
41 49
42Launch RabbitMQ consumer 50Launch RabbitMQ consumer
43------------------------ 51------------------------
44 52
45Put this command in a cron job: 53Depending on which service you want to import from you need to enable one (or many if you want to support many) cron job:
46 54
47.. code:: bash 55.. code:: bash
48 56
49 bin/console rabbitmq:consumer entries -w \ No newline at end of file 57 # for Pocket import
58 bin/console rabbitmq:consumer import_pocket -w
59
60 # for Readbility import
61 bin/console rabbitmq:consumer import_readability -w
62
63 # for wallabag v1 import
64 bin/console rabbitmq:consumer import_wallabag_v1 -w
65
66 # for wallabag v2 import
67 bin/console rabbitmq:consumer import_wallabag_v2 -w