forked from lsmyrnaios/UrlsController
- 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:
parent
c7bfd75973
commit
c2a1b96069
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue