diff --git a/layer-batch/Dockerfile b/layer-batch/Dockerfile index 391fc1a4..ea09a3c3 100644 --- a/layer-batch/Dockerfile +++ b/layer-batch/Dockerfile @@ -7,4 +7,4 @@ COPY ${JAR_FILE} layer-batch.jar ENV SPRING_PROFILE=${SPRING_PROFILE} -ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul","-jar" ,"layer-batch.jar"] \ No newline at end of file +ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul","-Dspring.profiles.active=prod" ,"-jar" ,"layer-batch.jar"] \ No newline at end of file diff --git a/layer-batch/src/main/java/org/layer/batch/scheduler/RetrospectScheduler.java b/layer-batch/src/main/java/org/layer/batch/scheduler/RetrospectScheduler.java index ee34e6de..dc62ad6a 100644 --- a/layer-batch/src/main/java/org/layer/batch/scheduler/RetrospectScheduler.java +++ b/layer-batch/src/main/java/org/layer/batch/scheduler/RetrospectScheduler.java @@ -32,7 +32,7 @@ public class RetrospectScheduler { /** * @note: 1시간마다 실행된다. */ - @Scheduled(cron = "0 0 * * * *") + @Scheduled(cron = "0 0/3 * * * *") public void updateRetrospectStatusToDone() { log.info("Batch Start : updateRetrospectStatusToDone");