1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Send every imported item to the queue

Instead of queing real Entry to process, we queue all the item to import from Pocket in a raw format.
Then, the worker retrieve that information, find / create the entry and save it.
This commit is contained in:
Jeremy Benoist 2016-09-03 17:36:57 +02:00
parent 87c9995b6c
commit ef75e1220e
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
9 changed files with 226 additions and 159 deletions

View file

@ -219,24 +219,24 @@ lexik_maintenance:
old_sound_rabbit_mq:
connections:
default:
host: %rabbitmq_host%
port: %rabbitmq_port%
user: %rabbitmq_user%
password: %rabbitmq_password%
host: "%rabbitmq_host%"
port: "%rabbitmq_port%"
user: "%rabbitmq_user%"
password: "%rabbitmq_password%"
vhost: /
lazy: false
lazy: true
producers:
wallabag:
wallabag_pocket:
connection: default
exchange_options:
name: 'wallabag_exchange'
name: 'wallabag.import.pocket'
type: topic
consumers:
entries:
wallabag_pocket:
connection: default
exchange_options:
name: 'wallabag_exchange'
name: 'wallabag.import.pocket'
type: topic
queue_options:
name: 'wallabag_queue'
callback: wallabag_import.consumer.entry
name: 'wallabag.import.pocket'
callback: wallabag_import.consumer.pocket

View file

@ -41,11 +41,7 @@ parameters:
rss_limit: 50
# pocket import
pocket_consumer_key: xxxxxxxx
# RabbitMQ processing
rabbitmq: false
rabbitmq_host: localhost
rabbitmq_port: 5672
rabbitmq_user: guest