I know this is beyond the scope of ktor but would it be possible to run a process that is on an infinite loop as a co-routine spawned by a route (or a background thread launched every X minutes)?
I ask as I am currently running 2 jars and they both share a lot of libraries... If I could start/stop it from a route that would be great awesome.