- Rename the mounted "mnt/bulkImport/" directory to "/mnt/bulk_import/".

- Increase the "awaitTermination" timeout for the ExecutorService to 2 minutes.
This commit is contained in:
Lampros Smyrnaios 2023-05-23 21:09:34 +03:00
parent c7bfd75973
commit c2a1b96069
3 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ services:
source: $HOME/logs
target: /logs
- type: bind
source: /mnt/bulkImport
target: /mnt/bulkImport
source: /mnt/bulk_import
target: /mnt/bulk_import
- type: bind
source: $HOME/bulkImportReports
target: /bulkImportReports

View File

@ -63,7 +63,7 @@ public class Application {
{
executorService.shutdown(); // Define that no new tasks will be scheduled.
try {
if ( ! executorService.awaitTermination(1, TimeUnit.MINUTES) ) {
if ( ! executorService.awaitTermination(2, TimeUnit.MINUTES) ) {
logger.warn("The working threads did not finish on time! Stopping them immediately..");
executorService.shutdownNow();
}

View File

@ -31,7 +31,7 @@ services:
bulkImport:
baseBulkImportLocation: /mnt/bulkImport/
baseBulkImportLocation: /mnt/bulk_import/
bulkImportReportLocation: /bulkImportReports/
bulkImportSources: # These sources are accepted for bulk-import requests and are excluded from crawling.
arxivImport: