Hristijan
11/02/2024, 1:13 AMChrimaeon
11/02/2024, 8:22 AMHristijan
11/02/2024, 8:53 AMChrimaeon
11/02/2024, 8:55 AMVampire
11/02/2024, 8:57 AMChrimaeon
11/02/2024, 8:57 AMcurl
and do the things you want to do.Vampire
11/02/2024, 8:58 AMChrimaeon
11/02/2024, 8:59 AMVampire
11/02/2024, 9:02 AMChrimaeon
11/02/2024, 9:07 AMcron
the server would just wake up.Vampire
11/02/2024, 10:40 AMHristijan
11/02/2024, 11:15 AMI’d still use something “outside” my API-server to trigger periodic tasks. nowadays server run in containers that could be scaled down and not be alive all the time. if you integrate your tasks into your API you need to get sure its awake all the time. with cron the server would just wake up.
As far as I know a Ktor server never sleeps, it's always idling
Chrimaeon
11/02/2024, 11:58 AMHristijan
11/02/2024, 12:03 PMChrimaeon
11/02/2024, 12:05 PMChrimaeon
11/02/2024, 12:06 PMjw
11/02/2024, 2:01 PMjw
11/02/2024, 2:01 PMwhile (true)
+ delay
in a simple coroutine, depending on your needsHristijan
11/02/2024, 2:43 PMjw
11/02/2024, 2:45 PMkevin.cianfarini
11/02/2024, 2:45 PMCasey Brooks
11/02/2024, 2:54 PMHristijan
11/02/2024, 7:12 PMIf you want cardiologist to survive process death then write your recurring schedules to a file or db. That's what quartz will do
I'll try that, I like the cardiologist's Kotlin API
Horatio Thomas
11/03/2024, 7:01 AMjw
11/03/2024, 11:58 AM