mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -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:
		| @@ -99,5 +99,7 @@ class Command(BaseCommand): | ||||
|             self.first_iteration = False | ||||
|             self.mail_fetcher.pull() | ||||
|  | ||||
|         # Consume whatever files we can | ||||
|         self.file_consumer.run() | ||||
|         # 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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn