1 Install Redis for asynchronous tasks
2 ====================================
4 In order to launch asynchronous tasks (useful for huge imports for example), we can use Redis.
9 You need to have Redis installed on your server.
16 apt-get install redis-server
21 The server might be already running after installing, if not you can launch it using:
28 Configure Redis in wallabag
29 ---------------------------
31 Edit your ``app/config/parameters.yml`` file to edit Redis configuration. The default one should be ok:
38 Enable Redis in wallabag
39 ------------------------
41 In internal settings, in the **Import** section, enable Redis (with the value 1).
46 Depending on which service you want to import from you need to enable one (or many if you want to support many) cron job:
51 bin/console wallabag:import:redis-worker -e=prod pocket -vv >> /path/to/wallabag/var/logs/redis-pocket.log
53 # for Readability import
54 bin/console wallabag:import:redis-worker -e=prod readability -vv >> /path/to/wallabag/var/logs/redis-readability.log
56 # for Instapaper import
57 bin/console wallabag:import:redis-worker -e=prod instapaper -vv >> /path/to/wallabag/var/logs/redis-instapaper.log
59 # for wallabag v1 import
60 bin/console wallabag:import:redis-worker -e=prod wallabag_v1 -vv >> /path/to/wallabag/var/logs/redis-wallabag_v1.log
62 # for wallabag v2 import
63 bin/console wallabag:import:redis-worker -e=prod wallabag_v2 -vv >> /path/to/wallabag/var/logs/redis-wallabag_v2.log
66 bin/console wallabag:import:redis-worker -e=prod firefox -vv >> /path/to/wallabag/var/logs/redis-firefox.log
69 bin/console wallabag:import:redis-worker -e=prod instapaper -vv >> /path/to/wallabag/var/logs/redis-chrome.log
71 If you want to launch the import only for some messages and not all, you can specify this number (here 12) and the worker will stop right after the 12th message :
75 bin/console wallabag:import:redis-worker -e=prod pocket -vv --maxIterations=12