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
|
||||
class TaskScheduler {
|
||||
|
||||
@Scheduled(cron = "*/15 * * * * *")
|
||||
@Scheduled(cron = "*/15 * * * *")
|
||||
@SchedulerLock(name = "TaskScheduler_scheduledTask", lockAtLeastForString = "PT5M", lockAtMostForString = "PT14M")
|
||||
public void scheduledTask() {
|
||||
System.out.println("Running ShedLock task");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue