Skip to content
Snippets Groups Projects
Commit d73e46ff authored by Greg DiCristofaro's avatar Greg DiCristofaro
Browse files

wait for ingest to complete before proceeding to report

parent b7ac6bb3
No related branches found
No related tags found
No related merge requests found
......@@ -515,7 +515,10 @@ private void analyze(AutoIngestDataSource dataSource, String ingestProfileName)
* 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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment