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 357 forks source link

Consuming stops, when Mail-Task starts #446

Closed andbez closed 3 years ago

andbez commented 3 years ago

Still migrate lots of Documents via Consumer to paperless-ng (Docker, Version 1.0.0, using inotify for consumer). When i put Documents (10-50) into the consumer-folder the consumer starts consuming. But when the task paperless_mail.tasks.process_mail_accounts starts while consuming, consuming stops and all waiting documents in the consumer-folder will not be consumed. I have to restart paperless to start the consuming process again or copy the doc to another folder and back to the consuming folder.

jonaswinkler commented 3 years ago

Paperless runs background tasks in parallel, if possible. Both mail checking and document consumption are background tasks. I might have to adjust the defaults here.

In the meantime, you can also adjust PAPERLESS_TASK_WORKERS to a higher number (up to your cpu core count) to have paperless do things in parallel.

andbez commented 3 years ago

Cpu-Cores: 4 (Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz)

I will try with 2/2 for Workers/per Worker.

andbez commented 3 years ago

Worked with the new Parameters. Thx!

jonaswinkler commented 3 years ago

I'll adjust the defaults then and close this after that.