wait for ingest to complete before proceeding to report

This commit is contained in:
Greg DiCristofaro 2022-06-13 20:12:52 -04:00
parent b7ac6bb383
commit d73e46ff80

View File

@ -515,7 +515,10 @@ public class CommandLineIngestManager extends CommandLineManager {
* listener or until interrupted because auto ingest
* is shutting down.
*/
ingestLock.wait();
do {
ingestLock.wait();
} while (IngestManager.getInstance().isIngestRunning());
LOGGER.log(Level.INFO, "Finished ingest modules analysis for {0} ", dataSource.getPath());
IngestJob.ProgressSnapshot jobSnapshot = ingestJob.getSnapshot();
IngestJob.ProgressSnapshot.DataSourceProcessingSnapshot snapshot = jobSnapshot.getDataSourceProcessingSnapshot();