Skip to content

Commit 69395a9

Browse files
[refactor] scheduler 시간 변경 & 사용자 정보 수정 트랜잭션 추가
* refactor: scheduler 시간 변경 * feat: updateProfile transactional 추가
1 parent 94988f6 commit 69395a9

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

backend/src/main/java/com/back/api/user/service/UserService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public UserProfileResponse getUser(Long userId) {
3232
return UserProfileResponseMapper.from(user);
3333
}
3434

35+
@Transactional
3536
public UserProfileResponse updateProfile(Long userId, UpdateProfileRequest request) {
3637
User user = userRepository.findById(userId)
3738
.orElseThrow(() -> new ErrorException(UserErrorCode.NOT_FOUND));

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,27 @@ cookie:
7373
secure: true
7474
same-site: None
7575
domain: ""
76+
7677
#cookie:
7778
# secure: true
7879
# same-site: None
7980
# domain: ".waitfair.shop"
81+
82+
# 임시 운영환경용 스케줄러. redis 해결 후 삭제
83+
queue:
84+
scheduler:
85+
#입장 처리 스케줄러
86+
entry:
87+
cron: "0 0 3 * * *" # 매일 새벽 3시
88+
batch-size: 100
89+
max-entered-limit: 100
90+
shuffle:
91+
cron: "0 0 4 * * *" # 매일 새벽 4시
92+
time-range-minutes: 1
93+
expire:
94+
cron: "0 0 5 * * *" # 매일 새벽 5시
95+
96+
event:
97+
scheduler:
98+
open:
99+
cron: "0 0 2 * * *" # 매일 새벽 2시

0 commit comments

Comments
 (0)