- 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 source: $HOME/logs
target: /logs target: /logs
- type: bind - type: bind
source: /mnt/bulkImport source: /mnt/bulk_import
target: /mnt/bulkImport target: /mnt/bulk_import
- type: bind - type: bind
source: $HOME/bulkImportReports source: $HOME/bulkImportReports
target: /bulkImportReports target: /bulkImportReports

View File

@ -63,7 +63,7 @@ public class Application {
{ {
executorService.shutdown(); // Define that no new tasks will be scheduled. executorService.shutdown(); // Define that no new tasks will be scheduled.
try { 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.."); logger.warn("The working threads did not finish on time! Stopping them immediately..");
executorService.shutdownNow(); executorService.shutdownNow();
} }

View File

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