Whether it is necessary to set values LockAtMostFor and LockAtMostFor for a task that is executed once a month, the execution time is several minutes, there are several nodes with a running service. How correct will it be to expose values to
lockAtLeastFor = "PT1H" lockAtMostFor = "15m"
?
You do not have to set lockAtLeastFor
. On the other hand lockAtMostFor
has to be set just in case the node executing the taks dies. The lock gets automatically released after that time.