-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] 30분마다 종료 조건 검증 후 종료 status로 상태 바꾸는 스케쥴링 로직 구현 #113
Conversation
1. 정각, 30분마다 update 쿼리 동작하도록 진행 2. transactional 격리 레벨 repeatable read 동작하도록 명시적으로 작성
Test Results13 files 13 suites 3s ⏱️ Results for commit 2bbf578. |
@@ -27,4 +29,7 @@ public interface EveryGroupRepository extends JpaRepository<EveryGroupEntity, Lo | |||
boolean isInTime(UserEntity userEntity, double startTime, double endTime, | |||
WeekDate weekDate, Status status); | |||
|
|||
@Lock(LockModeType.PESSIMISTIC_WRITE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closed로 바뀌는 동안은 설정하지 못하도록 하는 것!!! 확인해둘게용!!!!
@Bean | ||
public Executor asyncEveryGroupUpdater() { | ||
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); | ||
executor.setCorePoolSize(5); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
executor
-> once / every 는 관계 없으므로 동시에 돌린다~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
드디어 자동으로 관리된다!!
PULL REQUEST
#️⃣관련 이슈
🎋 작업중인 브랜치
💡 작업내용
🔑 주요 변경사항
🏞 스크린샷
스크린샷을 첨부해주세요.
closes #112