Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prod 에서 작동하게 수정과 테스트를 위한 수정 #1

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
refactor: 테스트 위해 cron 수정, zone 추가
damho committed Mar 21, 2024
commit 1490f325902f347a6551bcefb5e8b668941f7905
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ public class BirthDayCouponBatchConfig {
* @throws JobRestartException 작업을 다시 시작하려는 불법적인 시도를 나타내는 예외
*/
// @Scheduled(cron = "0 30 23 L * *")
@Scheduled(cron = "0 45 9 21 3 *")
@Scheduled(cron = "0 55 9 21 3 *", zone = "Asia/Seoul")
public void runJob() throws JobInstanceAlreadyCompleteException, JobExecutionAlreadyRunningException,
JobParametersInvalidException, JobRestartException {

Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ public class UserStatusChangeBatchConfig {
* @throws JobRestartException 작업을 다시 시작하려는 시도를 나타내는 예외
*/
// @Scheduled(cron = "0 0 0 * * *")
@Scheduled(cron = "0 45 9 21 3 *")
@Scheduled(cron = "0 55 9 21 3 *", zone = "Asia/Seoul")
public void runJob() throws JobInstanceAlreadyCompleteException, JobExecutionAlreadyRunningException,
JobParametersInvalidException, JobRestartException {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd:HH:mm:ss");