mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Run a --oneshot loop twice
This was necessary since the first loop only ever collects file statistics so that the second run can be sure about "readiness".
This commit is contained in:
parent
73e62600c2
commit
d0252e8e44
1 changed files with 4 additions and 2 deletions
|
|
@ -99,5 +99,7 @@ class Command(BaseCommand):
|
||||||
self.first_iteration = False
|
self.first_iteration = False
|
||||||
self.mail_fetcher.pull()
|
self.mail_fetcher.pull()
|
||||||
|
|
||||||
# Consume whatever files we can
|
# Consume whatever files we can.
|
||||||
|
# We have to run twice as the first run checks for file readiness
|
||||||
|
for i in range(2):
|
||||||
self.file_consumer.run()
|
self.file_consumer.run()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue