Skip to content

Commit

Permalink
부하기간 딜레이 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Hank-Choi committed Sep 4, 2023
1 parent 32bbaa1 commit 8e167a7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.toList
import kotlinx.coroutines.launch
Expand Down Expand Up @@ -52,6 +53,7 @@ class VacancyNotifierServiceImpl(
getPageCount()
}.getOrElse {
log.error("부하기간")
delay(5000)
return VacancyNotificationJobResult.OVERLOAD_PERIOD
}
val lectures =
Expand Down

0 comments on commit 8e167a7

Please sign in to comment.