Skip to content

Commit 5096f94

Browse files
committed
Changed default thread pool size to 3 [#2429]
The default value is 3 in the properties file now, but if the value is left out then it defaults to unlimited.
1 parent b66ead7 commit 5096f94

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

comixed-app/src/main/resources/application.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ spring.datasource.url=jdbc:h2:file:~/.comixed/comixed
2828
spring.datasource.username=sa
2929
spring.datasource.password=
3030

31+
# Batch processing
32+
# Set this value to the number of parallel batch processes desired:
33+
# n - allow up to n threads
34+
# -1 - unlimited threads allowed (default)
35+
comixed.batch.thread-pool-size=3
36+
3137
# Logging
3238
logging.file.name=${user.home}/.comixed/comixed.log
3339
logging.level.root=OFF

comixed-app/src/main/resources/comixed-core.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ spring.batch.jdbc.initialize-schema=always
4747
spring.batch.job.enabled=true
4848
spring.batch.job.name=processUnhashedComicsJob
4949
spring.batch.jdbc.isolation-level-for-create=repeatable_read
50-
comixed.batch.thread-pool-size=-1
5150
comixed.batch.page-reader.chunk-size=1
5251
comixed.batch.add-image-cache-entries.chunk-size=1
5352
comixed.batch.metadata-process.chunk-size=1

0 commit comments

Comments
 (0)