|
|
@@ -31,13 +31,13 @@ public class AdAutoTask {
|
|
|
private final AdPlanConfService adPlanConfService;
|
|
|
// private final ExecutorService executorService = Executors.newFixedThreadPool(10);
|
|
|
|
|
|
- @Scheduled(cron = "0 0/10 * * * ?")
|
|
|
- @SchedulerLock(name = "ad-plan-auto-task", lockAtMostFor = "9m", lockAtLeastFor = "2m")
|
|
|
- public void adPlanAutoTask() {
|
|
|
- log.info("AdPlanAutoTask execute");
|
|
|
- List<AdAutoConf> confList = adAutoConfService.lambdaQuery().list();
|
|
|
- confList.forEach(conf -> adPlanAutoExecutor.asyncExecute(conf));
|
|
|
- }
|
|
|
+ // @Scheduled(cron = "0 0/10 * * * ?")
|
|
|
+ // @SchedulerLock(name = "ad-plan-auto-task", lockAtMostFor = "9m", lockAtLeastFor = "2m")
|
|
|
+ // public void adPlanAutoTask() {
|
|
|
+ // log.info("AdPlanAutoTask execute");
|
|
|
+ // List<AdAutoConf> confList = adAutoConfService.lambdaQuery().list();
|
|
|
+ // confList.forEach(conf -> adPlanAutoExecutor.asyncExecute(conf));
|
|
|
+ // }
|
|
|
|
|
|
@Scheduled(cron = "30 0/10 * * * ?")
|
|
|
@SchedulerLock(name = "ad-creative-auto-task", lockAtMostFor = "9m", lockAtLeastFor = "2m")
|