콘텐츠 예약 오픈 설정

- 스케줄러 설정 추가
This commit is contained in:
2024-12-02 08:58:54 +09:00
parent e470e70612
commit c1748001d5
4 changed files with 23 additions and 7 deletions

View File

@@ -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
}
}