|
@@ -32,9 +32,9 @@ public class DailyReportSyncTask {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 同步当日 REQUEST_TIME 口径日报表
|
|
* 同步当日 REQUEST_TIME 口径日报表
|
|
|
- * cron: 每小时的 2,7,12,17,22,27,32,37,42,47,52,57 分执行
|
|
|
|
|
|
|
+ * cron: 每小时
|
|
|
*/
|
|
*/
|
|
|
- @Scheduled(cron = "0 2,7,12,17,22,27,32,37,42,47,52,57 * * * *")
|
|
|
|
|
|
|
+ @Scheduled(cron = "0 0 * * * *")
|
|
|
@SchedulerLock(name = "syncTodayReqDailyReport", lockAtMostFor = "4m", lockAtLeastFor = "1m")
|
|
@SchedulerLock(name = "syncTodayReqDailyReport", lockAtMostFor = "4m", lockAtLeastFor = "1m")
|
|
|
public void syncTodayRequestTime() {
|
|
public void syncTodayRequestTime() {
|
|
|
String today = LocalDate.now().format(FMT);
|
|
String today = LocalDate.now().format(FMT);
|
|
@@ -49,9 +49,9 @@ public class DailyReportSyncTask {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 同步当日 REPORTING_TIME 口径日报表
|
|
* 同步当日 REPORTING_TIME 口径日报表
|
|
|
- * cron: 每小时的 2,7,12,17,22,27,32,37,42,47,52,57 分执行(与 REQUEST_TIME 错开 30s 避免并发)
|
|
|
|
|
|
|
+ * cron: 每小时的1分执行(与 REQUEST_TIME 错开 30s 避免并发)
|
|
|
*/
|
|
*/
|
|
|
- @Scheduled(cron = "30 2,7,12,17,22,27,32,37,42,47,52,57 * * * *")
|
|
|
|
|
|
|
+ @Scheduled(cron = "30 0 * * * *")
|
|
|
@SchedulerLock(name = "syncTodayRepDailyReport", lockAtMostFor = "4m", lockAtLeastFor = "1m")
|
|
@SchedulerLock(name = "syncTodayRepDailyReport", lockAtMostFor = "4m", lockAtLeastFor = "1m")
|
|
|
public void syncTodayReportingTime() {
|
|
public void syncTodayReportingTime() {
|
|
|
String today = LocalDate.now().format(FMT);
|
|
String today = LocalDate.now().format(FMT);
|