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
|
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
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue