1 Install RabbitMQ for asynchronous tasks
2 =======================================
4 In order to launch asynchronous tasks (useful for huge imports for example), we can use RabbitMQ.
9 You need to have RabbitMQ installed on your server.
16 wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
17 apt-key add rabbitmq-signing-key-public.asc
19 apt-get install rabbitmq-server
21 Configuration and launch
22 ~~~~~~~~~~~~~~~~~~~~~~~~
26 rabbitmq-plugins enable rabbitmq_management # (useful to have a web interface, available at http://localhost:15672/ (guest/guest)
27 rabbitmq-server -detached
37 Configure RabbitMQ in wallabag
38 ------------------------------
40 Edit your ``parameters.yml`` file to edit RabbitMQ configuration. The default one should be ok:
44 rabbitmq_host: localhost
47 rabbitmq_password: guest
50 Launch RabbitMQ consumer
51 ------------------------
53 Depending on which service you want to import from you need to enable one (or many if you want to support many) cron job:
58 bin/console rabbitmq:consumer -e=prod import_pocket -w
60 # for Readability import
61 bin/console rabbitmq:consumer -e=prod import_readability -w
63 # for Instapaper import
64 bin/console rabbitmq:consumer -e=prod import_instapaper -w
66 # for wallabag v1 import
67 bin/console rabbitmq:consumer -e=prod import_wallabag_v1 -w
69 # for wallabag v2 import
70 bin/console rabbitmq:consumer -e=prod import_wallabag_v2 -w
73 bin/console rabbitmq:consumer -e=prod import_firefox -w
76 bin/console rabbitmq:consumer -e=prod import_chrome -w