Skip to content

Commit

Permalink
add property for cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
boal committed Feb 25, 2025
1 parent dcfdf0c commit 39ed2b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public class UnauffaelligeTageService {
* Existiert für eine Messstelle ein Tagesaggregat,
* so ist dieser Tag als unauffälliger Tag für diese Messstelle definiert.
*/
@Scheduled(cron = "${dave.messstelle.cron}")
@SchedulerLock(name = "loadUnauffaelligeTage", lockAtMostFor = "${dave.messstelle.shedlock}", lockAtLeastFor = "${dave.messstelle.shedlock}")
@Scheduled(cron = "${dave.unauffaellige-tage.cron}")
@SchedulerLock(name = "loadUnauffaelligeTage", lockAtMostFor = "${dave.unauffaellige-tage.shedlock}", lockAtLeastFor = "${dave.unauffaellige-tage.shedlock}")
@Transactional
@LogExecutionTime
public void loadMessstellenCron() {
Expand Down

0 comments on commit 39ed2b3

Please sign in to comment.