콘텐츠 예약 오픈 설정
- 스케줄러 설정 추가
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package kr.co.vividnext.sodalive.configs
|
||||
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import org.springframework.scheduling.annotation.EnableScheduling
|
||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
|
||||
|
||||
@Configuration
|
||||
@EnableScheduling
|
||||
class SchedulerConfig {
|
||||
@Bean
|
||||
fun taskScheduler(): ThreadPoolTaskScheduler {
|
||||
val scheduler = ThreadPoolTaskScheduler()
|
||||
scheduler.poolSize = 2
|
||||
scheduler.setThreadNamePrefix("AudioContentRelease-Scheduler-")
|
||||
return scheduler
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user