Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leixm committed Dec 4, 2024
1 parent 29e27cd commit 21cc1b7
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ class QuotaManager(
private val quotaChecker =
ThreadUtils.newDaemonSingleThreadScheduledExecutor("master-quota-checker")
quotaChecker.scheduleWithFixedDelay(
() => {
try {
updateResourceConsumption()
} catch {
case t: Throwable => logError("Update user resource consumption failed.", t)
new Runnable {
override def run(): Unit = {
try {
updateResourceConsumption()
} catch {
case t: Throwable => logError("Update user resource consumption failed.", t)
}
}
},
0L,
Expand Down

0 comments on commit 21cc1b7

Please sign in to comment.