Skip to content

Commit c0d3c2e

Browse files
committed
refactor: prod 스케줄러 해제
1 parent 573e429 commit c0d3c2e

7 files changed

Lines changed: 23 additions & 23 deletions

File tree

backend/src/main/java/com/back/api/event/scheduler/EventOpenScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@Component
2222
@RequiredArgsConstructor
2323
@Slf4j
24-
@Profile({"perf"})
24+
@Profile({"perf", "prod"})
2525
public class EventOpenScheduler {
2626

2727
private final EventRepository eventRepository;

backend/src/main/java/com/back/api/queue/scheduler/QueueEntryScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@Component
2727
@RequiredArgsConstructor
2828
@Slf4j
29-
@Profile({"perf"})
29+
@Profile({"perf", "prod"})
3030
public class QueueEntryScheduler {
3131

3232
private final QueueEntryProcessService queueEntryProcessService;

backend/src/main/java/com/back/api/queue/scheduler/QueueExpireScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@Component
2323
@RequiredArgsConstructor
2424
@Slf4j
25-
@Profile({"perf"})
25+
@Profile({"perf", "prod"})
2626
public class QueueExpireScheduler {
2727

2828
private final QueueEntryRepository queueEntryRepository;

backend/src/main/java/com/back/api/queue/scheduler/QueueShuffleScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@Component
3030
@RequiredArgsConstructor
3131
@Slf4j
32-
@Profile({"perf"})
32+
@Profile({"perf", "prod"})
3333
public class QueueShuffleScheduler {
3434
private static final String JOB_NAME = "QueueShuffle";
3535

backend/src/main/java/com/back/api/ticket/scheduler/DraftTicketExpirationScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@Component
2525
@RequiredArgsConstructor
2626
@Slf4j
27-
@Profile({"perf"})
27+
@Profile({"perf", "prod"})
2828
public class DraftTicketExpirationScheduler {
2929

3030
private static final int PAGE_SIZE = 500;

backend/src/main/resources/application-prod.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,23 @@ cookie:
8181
# domain: ".waitfair.shop"
8282

8383
# 임시 운영환경용 스케줄러. redis 해결 후 삭제
84-
queue:
85-
scheduler:
86-
#입장 처리 스케줄러
87-
entry:
88-
cron: "0 0 3 * * *" # 매일 새벽 3시
89-
batch-size: 100
90-
max-entered-limit: 100
91-
shuffle:
92-
cron: "0 0 4 * * *" # 매일 새벽 4시
93-
time-range-minutes: 1
94-
expire:
95-
cron: "0 0 5 * * *" # 매일 새벽 5시
96-
97-
event:
98-
scheduler:
99-
open:
100-
cron: "0 0 2 * * *" # 매일 새벽 2시
84+
#queue:
85+
# scheduler:
86+
# #입장 처리 스케줄러
87+
# entry:
88+
# cron: "0 0 3 * * *" # 매일 새벽 3시
89+
# batch-size: 100
90+
# max-entered-limit: 100
91+
# shuffle:
92+
# cron: "0 0 4 * * *" # 매일 새벽 4시
93+
# time-range-minutes: 1
94+
# expire:
95+
# cron: "0 0 5 * * *" # 매일 새벽 5시
96+
#
97+
#event:
98+
# scheduler:
99+
# open:
100+
# cron: "0 0 2 * * *" # 매일 새벽 2시
101101

102102
# coolSMS
103103
sms:

backend/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ queue:
9898
#입장 처리 스케줄러
9999
entry:
100100
cron: "*/10 * * * * *" # 10초마다 실행
101-
batch-size: 100 # 한 번에 입장시킬 인원
101+
batch-size: 5 # 한 번에 입장시킬 인원 100
102102
max-entered-limit: 100 # 최대 수용 인원
103103

104104
#셔플 처리 스케줄러

0 commit comments

Comments
 (0)