libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit b2471f00eba039a460cc31f02fc47a2267367efd
parent af77f9d54ee62d7c4294bf628cfcd9de42844502
Author: MS <ms@taler.net>
Date:   Tue, 25 Apr 2023 12:49:59 +0200

Scheduler policy.

Bringing the scheduler loop to 1 second frequency.

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt @@ -168,7 +168,7 @@ suspend fun javaTimerOperationScheduler(httpClient: HttpClient) { suspend fun whileTrueOperationScheduler(httpClient: HttpClient) { while (true) { operationScheduler(httpClient) - // Wait a bit - delay(Duration.ofSeconds(5)) + // Wait the shortest period that the cron spec would allow. + delay(Duration.ofSeconds(1)) } } \ No newline at end of file