Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set appropiate searchpe.sunat.chunkSize #255

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void upgrade(Long versionId) {

LOGGER.infof("Waiting for all tasks for Version %s to be completed", versionId);
try {
boolean terminated = executorService.awaitTermination(2, TimeUnit.HOURS);
boolean terminated = executorService.awaitTermination(6, TimeUnit.HOURS);
if (terminated) {
LOGGER.infof("Executor service for Version %s gracefully terminated", versionId);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ searchpe.disable.authorization=true
searchpe.workspace.directory=workspace

searchpe.sunat.filter=ACTIVO
searchpe.sunat.chunkSize=1000
searchpe.sunat.chunkSize=500
searchpe.sunat.padronReducidoUrl=https://raw.githubusercontent.com/project-openubl/searchpe/master/src/test/resources/padron_reducido_ruc.zip

searchpe.scheduled.cron=0 0 1 * * ?
Expand Down