Skip to content

Commit

Permalink
[IDLE-000] 크롤링 진행 시각 저녁 11시로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjunYou committed Nov 9, 2024
1 parent 13cf591 commit 5efb9a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CrawlingJobScheduler(
private val crawlingJobConfig: CrawlingJobConfig,
) {

@Scheduled(cron = "0 0/15 * * * *")
@Scheduled(cron = "0 0 23 * * *")
fun scheduleJob() {
val jobParameters: JobParameters = JobParametersBuilder()
.addLong("timestamp", System.currentTimeMillis())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object WorknetCrawler {
logger.info { "=====초기화 완료, 크롤링 작업 시작" }

val formatter = DateTimeFormatter.ofPattern("yyyyMMdd")
val yesterday = LocalDate.now().minusDays(1).format(formatter)
val yesterday = LocalDate.now().format(formatter)
val crawlingUrl = CRAWLING_TARGET_URL_FORMAT
.replace("{yesterday}", yesterday)
.replace("{pageIndex}", "1")
Expand Down

0 comments on commit 5efb9a1

Please sign in to comment.