Skip to content

Commit 169cef9

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

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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)