Conversation
jyami-kim
reviewed
Sep 5, 2022
| import org.springframework.context.annotation.Import | ||
|
|
||
| @Configuration | ||
| class JobManagerConfig { |
| } | ||
|
|
||
| private fun updateJob() { | ||
| while (keepGoing) { |
Author
There was a problem hiding this comment.
요거 스프링이 종료될 때 SmartLifeCycle 구현한 클래스의 stop 메소드 호출하면서 while 문 탈출 할 수 있도록 돌아가는걸로 알고있어!
pci2676
reviewed
Sep 12, 2022
Member
pci2676
left a comment
There was a problem hiding this comment.
이거 ScheduledTaskRegistrar참조해서 스레드풀이랑 스케쥴 등록 개선할 수 있을것 같아
크론을 어떻게 사용하는지 트리거를 어떻게 사용하는지 구현체가 이해하기 쉽게 작성되어있는것 같아
|
|
||
| class TaskManager( | ||
| private val jobManager: JobManager, | ||
| private val jobCollection: JobCollection, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.