File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/team/wego/wegobackend/group/v2/application/service Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments