File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/clap/server/application/service/statistics Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 55import clap .server .common .annotation .architecture .ApplicationService ;
66import lombok .RequiredArgsConstructor ;
77import org .springframework .scheduling .annotation .Scheduled ;
8+ import org .springframework .transaction .annotation .Transactional ;
89
910import java .time .LocalDateTime ;
1011
@@ -14,7 +15,8 @@ public class StatisticsIndexingService {
1415 private final LoadTaskPort loadTaskPort ;
1516 private final TaskDocumentPort taskDocumentPort ;
1617
17- @ Scheduled (cron = "0 0 0 * * *" )
18+ @ Scheduled (cron = "30 43 09 * * *" )
19+ @ Transactional
1820 public void IndexStatistics () {
1921 taskDocumentPort .saveStatistics (
2022 loadTaskPort .findYesterdayTaskByDate (LocalDateTime .now ().withNano (0 ))
You can’t perform that action at this time.
0 commit comments