Skip to content

Commit

Permalink
Set appropiate searchpe.sunat.chunkSize (#255)
Browse files Browse the repository at this point in the history
* Set to 2000

* Change default chunk size
  • Loading branch information
carlosthe19916 authored May 11, 2022
1 parent 1bc6227 commit 559a797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 559a797

Please sign in to comment.