Run jobs before delay
This commit is contained in:
parent
a9611eee23
commit
9446b52e3d
1 changed files with 1 additions and 1 deletions
|
@ -138,8 +138,8 @@ fun Application.moduleWithDependencies(
|
||||||
RecurringTransactionProcessingJob(recurringTransactionRepository, transactionRepository)
|
RecurringTransactionProcessingJob(recurringTransactionRepository, transactionRepository)
|
||||||
)
|
)
|
||||||
while (currentCoroutineContext().isActive) {
|
while (currentCoroutineContext().isActive) {
|
||||||
delay(Duration.hours(24))
|
|
||||||
jobs.forEach { it.run() }
|
jobs.forEach { it.run() }
|
||||||
|
delay(Duration.hours(24))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue