mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-07 11:49:48 -05: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
13452ba33b
commit
19209ba5af
@ -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.
|
||||||
self.file_consumer.run()
|
# We have to run twice as the first run checks for file readiness
|
||||||
|
for i in range(2):
|
||||||
|
self.file_consumer.run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user