Klokka

val Klokka: ApplicationPlugin<KlokkaConfig>

Ktor glue for the framework-free KlokkaRuntime: builds a KlokkaSettings and KlokkaRuntime from the KlokkaConfig DSL, starts the runtime's worker machinery once the application has finished starting, and drains it as the application begins shutting down.

install(Klokka) {
queue("critical", concurrency = 4)
queue("default")
handle(myJobType) { payload -> ... }
}

Access the built runtime from application code via Application.klokka.