Merge pull request #6180 from eugenp/lor6-patch-1
Update TaskScheduler.java
This commit is contained in:
commit
f6bbd52fee
|
@ -7,9 +7,9 @@ import org.springframework.stereotype.Component;
|
||||||
@Component
|
@Component
|
||||||
class TaskScheduler {
|
class TaskScheduler {
|
||||||
|
|
||||||
@Scheduled(cron = "*/15 * * * * *")
|
@Scheduled(cron = "*/15 * * * *")
|
||||||
@SchedulerLock(name = "TaskScheduler_scheduledTask", lockAtLeastForString = "PT5M", lockAtMostForString = "PT14M")
|
@SchedulerLock(name = "TaskScheduler_scheduledTask", lockAtLeastForString = "PT5M", lockAtMostForString = "PT14M")
|
||||||
public void scheduledTask() {
|
public void scheduledTask() {
|
||||||
System.out.println("Running ShedLock task");
|
System.out.println("Running ShedLock task");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue