File tree 2 files changed +2
-10
lines changed
idle-batch/src/main/kotlin/com/swm/idle/batch
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class CrawlingJobScheduler(
13
13
private val crawlingJobConfig : CrawlingJobConfig ,
14
14
) {
15
15
16
- @Scheduled(cron = " 0 20 16 * * *" )
16
+ @Scheduled(cron = " 0 00 23 * * *" )
17
17
fun scheduleJob () {
18
18
val jobParameters: JobParameters = JobParametersBuilder ()
19
19
.addLong(" timestamp" , System .currentTimeMillis())
Original file line number Diff line number Diff line change @@ -21,15 +21,7 @@ class CrawlingJobPostingTasklet(
21
21
private val logger = KotlinLogging .logger { }
22
22
23
23
override fun execute (contribution : StepContribution , chunkContext : ChunkContext ): RepeatStatus {
24
- val crawlingJobPostings: List <CrawledJobPostingDto >? = try {
25
- WorknetCrawler .run ()
26
- } catch (e: Exception ) {
27
- logger.warn {
28
- e.toString()
29
- }
30
- e.printStackTrace() // 오류 로그 출력
31
- null // 오류 발생
32
- }
24
+ val crawlingJobPostings: List <CrawledJobPostingDto >? = WorknetCrawler .run ()
33
25
34
26
if (crawlingJobPostings != null ) {
35
27
crawlingJobPostings.mapNotNull { crawledJobPosting ->
You can’t perform that action at this time.
0 commit comments