Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class PetInitiatedLetterRecordCreationScheduler {
private final LoadSettingPort loadSettingPort;

@Async
@Scheduled(cron = "0 30 19 * * *")
@Scheduled(cron = "0 30 19 * * MON,WED,FRI")
@Transactional
public void createPetInitiatedLetterRecords() {
List<UserPetPairDto> userPetPairs = userPetInitiatedLetterPersistenceAdapter.findAllUserPetPairs();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class PetInitiatedLetterRetryScheduler {
private final SlackErrorReportService slackErrorReportService;
private final PetInitiatedLetterSubmitter submitter;

@Scheduled(cron = "0 5 20 * * *")
@Scheduled(cron = "0 5 20 * * MON,WED,FRI")
public void regeneratePetInitiatedLetters() {
LocalDateTime now = LocalDateTime.now();
LocalDateTime start = now.withHour(19).withMinute(29).withSecond(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class PetInitiatedLetterSubmitScheduler {
private final PetInitiatedLetterJpaRepository petInitiatedLetterJpaRepository;
private final PetInitiatedLetterSubmitter submitter;

@Scheduled(cron = "0 0 20 * * *")
@Scheduled(cron = "0 0 20 * * MON,WED,FRI")
public void submitPetInitiatedLetter() {
LocalDateTime startOfDay = LocalDate.now().atStartOfDay();
LocalDateTime endOfDay = startOfDay.plusDays(1).minusNanos(1);
Expand Down