Skip to content

Commit

Permalink
YEL-214 [setting] zone time 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonjeongs committed Mar 2, 2024
1 parent 72720da commit f733aa1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.yello.server.infrastructure.scheduler;


import com.yello.server.global.common.util.ConstantUtil;
import com.yello.server.infrastructure.batch.JobConfiguration;
import lombok.RequiredArgsConstructor;
import org.springframework.batch.core.JobParameters;
Expand All @@ -25,7 +26,7 @@ public class EventScheduler {
private final JobRepository jobRepository;
private final PlatformTransactionManager transactionManager;

@Scheduled(cron = "0 0 12 * * ?")
@Scheduled(cron = "0 0 12 * * ?", zone = ConstantUtil.GlobalZoneIdLabel)
public void lunchEventRunJob() {

//JobParamter의 역할은 반복해서 실행되는 Job의 유일한 ID임, 동일한 값이 세팅되면 두번째부터 실행안됨)
Expand Down

0 comments on commit f733aa1

Please sign in to comment.