Tristan Caron
03/21/2018, 3:34 PMorangy
Tristan Caron
03/21/2018, 4:01 PMget("/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 processingTristan Caron
03/21/2018, 4:03 PMval job = Job()
get("/run") {
call.respondText("OK")
if (job.children.count() > 0) return@get
launch(job) {
v6RunWorkflow(settings)
}
}
orangy