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] 게임 종료 스케줄링 추가 #292

Merged
merged 5 commits into from
Nov 27, 2024
Merged

[FEAT] 게임 종료 스케줄링 추가 #292

merged 5 commits into from
Nov 27, 2024

Conversation

Jin409
Copy link
Contributor

@Jin409 Jin409 commented Nov 26, 2024

🌍 이슈 번호

📝 구현 내용

  • 시작된지 5시간이 지난 경기는 매일 정각마다 경기의 상태를 종료로 변경한다.

🍀 확인해야 할 부분

  • 스케줄러를 더 자세히 테스트할 수 있는 방향이 있을지 고민됩니당

Copy link
Contributor

@Zena0128 Zena0128 left a comment

Choose a reason for hiding this comment

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

확인했습니다! 고생하셨슴다

Copy link
Contributor

@ldk980130 ldk980130 left a comment

Choose a reason for hiding this comment

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

간단한 로직이라 리뷰할게 별로 없네 수고했어~

스케줄러를 더 자세히 테스트할 수 있는 방향이 있을지 고민됩니당

스케줄러를 테스트한다는게 스케줄링하는 로직을 테스트한다는건지 아니면 스프링의 스케줄러를 테스트한다는건지?

전자라면 사실 승희가 구현한 것처럼 스케줄러 내부는 아주 얇게 유지하고 로직은 다른 클래스에서 구현하고 따로 테스트하면 되는 것이고 (스케줄러 메서드에선 로깅, 에러 처리, 핵심 로직 호출만 하도록)

후자라면 사실 스프링이 잘 제공해주는 기능이니까 테스트할 필요는 굳이 없다고 생각해.

@Jin409 Jin409 merged commit c5298d6 into main Nov 27, 2024
1 check passed
@Jin409 Jin409 deleted the feat/#249-scheduling branch November 27, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 경기 종료 배치 작업
3 participants