Skip to content
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 : 웨이팅 스케줄러 구현 #96

Merged
merged 20 commits into from
Jan 11, 2024
Merged

Conversation

hyun2371
Copy link
Member

@hyun2371 hyun2371 commented Jan 10, 2024

⛏ 작업 상세 내용

  • close feature : 웨이팅 스케줄러 구현 #94

  • 스케줄러 구현 -> 매일 자정 두 함수 실행

    • redis 데이터 모두 비우기
      • 스케줄러 테스트 진행 (성공한 거 확인하고 @ disabled 처리했습니다.)
    • 진행 중 상태였던 대기 모두 취소됨으로 변경
      • 벌크 연산 적용
      • repository 테스트 수행
      • schedular 테스트를 진행하였으나 오류가 나서, 데이터를 직접 삽입해보고 상태가 바뀌는 걸 확인했습니다.
  • @ LogIn 사용

    • memberId, ownerId 대신 각각 member, owner 사용
    • 통합테스트, 단위 테스트, 문서 테스트 수정
  • RestDocsSupport spring security 사용 가능하도록 수정

  • RestDocsConfig 추가

    • 생성된 스니펫 경로 자동 지정 및 prettryPrint 적용하는 코드 공통 추출

📝 작업 요약

  • 스케줄러 적용
  • @ LogIn 사용
  • RestDocsSupport 오류 안나도록 수정

☑️ 중점적으로 리뷰 할 부분

  • WaitingRepository
  • WaitingSchedular
  • 자정지나고 대기 상태 변경 및 대기열 비우는게 로직상 맞는지

@hyun2371 hyun2371 self-assigned this Jan 10, 2024
Copy link

github-actions bot commented Jan 10, 2024

Test Results

94 tests  +2   92 ✅ +1   8s ⏱️ -1s
25 suites +1    2 💤 +1 
25 files   +1    0 ❌ ±0 

Results for commit ac4c8cb. ± Comparison against base commit b224820.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@kkangh00n kkangh00n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~! 완료된 자정이 지나면, 상태가 끝나지 못한 Waiting을 모두 취소 상태로 바꾸어주고, Redis Queue 비워주면 로직 상 이상 없을 것 같습니다!!

Copy link
Member

@dlswns2480 dlswns2480 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨씁니다👍

@hyun2371 hyun2371 merged commit 18da479 into dev Jan 11, 2024
3 checks passed
@hyun2371 hyun2371 linked an issue Jan 11, 2024 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

feature : 웨이팅 스케줄러 구현
3 participants