Hello, is possible to have the current running job...
# ktor
t
Hello, is possible to have the current running jobs?
o
what do you mean?
t
Copy code
get("/path") {
        // This scope is running in a coroutine I guess
        delay(1000) { call.respondText("OK") }
    }
I was wondering if it's possible to have the state of this Job. I would like to avoid to run another one if one is still processing
Currently I'm doing
Copy code
val job = Job()
    get("/run") {
        call.respondText("OK")

        if (job.children.count() > 0) return@get

        launch(job) {
            v6RunWorkflow(settings)
        }
    }
o
ktor currently doesn’t have any special scheduling job facility, you can use anything that works with JVM