Skip to content

Commit 94753a7

Browse files
authored
[FEAT] 모임 선업로드 이미지 고아 이미지 삭제
[FEAT] 모임 선업로드 이미지 고아 이미지 삭제
2 parents cef5637 + ca56346 commit 94753a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/team/wego/wegobackend/group/v2/application/service/PreUploadedGroupImageOrphanGcWorker.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ public class PreUploadedGroupImageOrphanGcWorker {
2121

2222
// “사용자가 업로드 후 모임 생성까지 걸릴 수 있는 최대 시간”
2323
// 최소 변경이 목적이면 1~2시간 정도를 권장 (너무 짧으면 정상 플로우도 삭제 위험)
24-
// private static final Duration ORPHAN_GRACE = Duration.ofHours(2);
25-
private static final Duration ORPHAN_GRACE = Duration.ofSeconds(30);
24+
private static final Duration ORPHAN_GRACE = Duration.ofHours(2);
2625

2726
// 한 번에 너무 많이 지우지 않도록 제한
2827
private static final int BATCH_LIMIT = 200;
2928

3029
// 10분마다 정도면 충분히 안정적
31-
@Scheduled(fixedDelay = 30_000L)
30+
@Scheduled(fixedDelay = 10 * 60 * 1000L)
3231
public void gc() {
3332
long thresholdEpochSec = Instant.now().minus(ORPHAN_GRACE).getEpochSecond();
3433

0 commit comments

Comments
 (0)