Skip to content

Commit 6b42d40

Browse files
committed
refactor: config duplication and fetch-and-lock-on-execute ambiguity in spring config are fixed
1 parent 116b86e commit 6b42d40

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# db-scheduler
22

33
![build status](https://github.com/kagkarlsson/db-scheduler/workflows/build/badge.svg)
4-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.kagkarlsson/db-scheduler/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.kagkarlsson/db-scheduler)
4+
[![Maven Central](https://img.shields.io/maven-central/v/com.github.kagkarlsson/db-scheduler)](https://central.sonatype.com/artifact/com.github.kagkarlsson/db-scheduler)
55
[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
66

77
Task-scheduler for Java that was inspired by the need for a clustered `java.util.concurrent.ScheduledExecutorService` simpler than Quartz.
@@ -276,7 +276,7 @@ as they do not support descending indexes.
276276
#### Polling strategy
277277

278278
If you are running >1000 executions/s you might want to use the `lock-and-fetch` polling-strategy for lower overhead
279-
and higher throughput ([read more](#polling-strategy-lock-and-fetch)). If not, the default `fetch-and-lock-on-execute` will be fine.
279+
and higher throughput ([read more](#polling-strategy-lock-and-fetch)). If not, the default `fetch-and-lock-on-execute` (configured as `fetch` in Spring Boot) will be fine.
280280

281281
:gear: `.pollUsingFetchAndLockOnExecute(double, double)`<br/>
282282
Use default polling strategy `fetch-and-lock-on-execute`.<br/>
@@ -452,9 +452,6 @@ db-scheduler.enabled=true
452452
db-scheduler.heartbeat-interval=5m
453453
db-scheduler.missed-heartbeats-limit=6
454454
db-scheduler.polling-interval=10s
455-
db-scheduler.polling-strategy=fetch
456-
db-scheduler.polling-strategy-lower-limit-fraction-of-threads=0.5
457-
db-scheduler.polling-strategy-upper-limit-fraction-of-threads=3.0
458455
db-scheduler.table-name=scheduled_tasks
459456
db-scheduler.immediate-execution-enabled=false
460457
db-scheduler.scheduler-name=
@@ -464,7 +461,7 @@ db-scheduler.priority-enabled=false
464461
# Ignored if a custom DbSchedulerStarter bean is defined
465462
db-scheduler.delay-startup-until-context-ready=false
466463
467-
db-scheduler.polling-strategy=fetch
464+
db-scheduler.polling-strategy=fetch # fetch-and-lock-on-execute (default)
468465
db-scheduler.polling-strategy-lower-limit-fraction-of-threads=0.5
469466
db-scheduler.polling-strategy-upper-limit-fraction-of-threads=3.0
470467

0 commit comments

Comments
 (0)