From 29be39805e700b3d3c3870b18eb09c3acabc5f86 Mon Sep 17 00:00:00 2001 From: hyeonda02 Date: Sun, 1 Sep 2024 01:55:40 +0900 Subject: [PATCH] =?UTF-8?q?Refactor=20:=20=EC=8A=A4=EC=BC=80=EC=A4=84?= =?UTF-8?q?=EB=9F=AC=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/hsu/umc/server/service/SchedulerServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/hsu/umc/server/service/SchedulerServiceImpl.java b/src/main/java/hsu/umc/server/service/SchedulerServiceImpl.java index 206ae1b..b1101f1 100644 --- a/src/main/java/hsu/umc/server/service/SchedulerServiceImpl.java +++ b/src/main/java/hsu/umc/server/service/SchedulerServiceImpl.java @@ -23,7 +23,7 @@ public class SchedulerServiceImpl implements SchedulerService{ private final PhotoRepository photoRepository; private final UuidRepository uuidRepository; private final AmazonS3Manager s3Manager; - @Scheduled(cron = "${cloud.aws.cron}") + @Scheduled(cron = "0 0/1 * * * ?", zone = "Asia/Seoul") @Transactional public void deletePhoto() { log.info("Scheduled task started for deleting photos");