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:
parent
87c9995b6c
commit
ef75e1220e
9 changed files with 226 additions and 159 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue