Skip to content

Commit ce3726b

Browse files
committed
README updated
1 parent 2a73265 commit ce3726b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ public void scheduledTask() {
9393
```
9494
By setting `lockAtMostFor` we make sure that the lock is released even if the node dies and by setting `lockAtLeastFor`
9595
we make sure it's not executed more than once in fifteen minutes.
96-
Please note that if the task takes longer than 15 minutes, it will be executed again.
96+
Please note that **`lockAtMostFor` is just a safety net for a case that the node executing the task dies, please set it to
97+
a time that is significantly larger than maximum estimated execution time.** If the task takes longer than `lockAtMostFor`,
98+
it will be executed again.
9799

98100

99101
### Configure the task scheduler

0 commit comments

Comments
 (0)