We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cef5637 + ca56346 commit 94753a7Copy full SHA for 94753a7
1 file changed
src/main/java/team/wego/wegobackend/group/v2/application/service/PreUploadedGroupImageOrphanGcWorker.java
@@ -21,14 +21,13 @@ public class PreUploadedGroupImageOrphanGcWorker {
21
22
// “사용자가 업로드 후 모임 생성까지 걸릴 수 있는 최대 시간”
23
// 최소 변경이 목적이면 1~2시간 정도를 권장 (너무 짧으면 정상 플로우도 삭제 위험)
24
-// private static final Duration ORPHAN_GRACE = Duration.ofHours(2);
25
- private static final Duration ORPHAN_GRACE = Duration.ofSeconds(30);
+ private static final Duration ORPHAN_GRACE = Duration.ofHours(2);
26
27
// 한 번에 너무 많이 지우지 않도록 제한
28
private static final int BATCH_LIMIT = 200;
29
30
// 10분마다 정도면 충분히 안정적
31
- @Scheduled(fixedDelay = 30_000L)
+ @Scheduled(fixedDelay = 10 * 60 * 1000L)
32
public void gc() {
33
long thresholdEpochSec = Instant.now().minus(ORPHAN_GRACE).getEpochSecond();
34
0 commit comments