jonaswinkler / paperless-ng

A supercharged version of paperless: scan, index and archive all your physical documents
https://paperless-ng.readthedocs.io/en/latest/
GNU General Public License v3.0
5.37k stars 356 forks source link

[BUG] Several paperless instances with one Redis instance #884

Open christo-ph opened 3 years ago

christo-ph commented 3 years ago

Describe the bug

To Reproduce

  1. Having several paperless instances for different purposes (private, business, associations)
  2. All pointing to the same global Redis instance
  3. Tasks are mixed, consumptions get cleared with failure by a different instance, so that the instance which should i.e. fetch and parse email attachments does not look up the task anymore.
  4. You can find the failed tasks on all other instances

Expected behavior Paperless should handle more than one instance in the same Redis cluster, for example by different keys or queues (randomly generated at first start) within Redis

Relevant information

jonaswinkler commented 3 years ago

I'm open for PRs on this one.