forked from opensci/piflow
fix stop flow bug
This commit is contained in:
parent
d8d0768eb6
commit
93812c5783
|
@ -118,7 +118,7 @@ object API {
|
|||
}
|
||||
|
||||
def stopFlow(process : SparkAppHandle): String = {
|
||||
process.stop()
|
||||
process.kill()
|
||||
"ok"
|
||||
}
|
||||
|
||||
|
|
|
@ -80,6 +80,7 @@ object HTTPService extends DefaultJsonProtocol with Directives with SprayJsonSup
|
|||
processMap.get(appId) match {
|
||||
case Some(process) =>
|
||||
val result = API.stopFlow(process)
|
||||
processMap.-(appId)
|
||||
Future.successful(HttpResponse(entity = result))
|
||||
case ex =>{
|
||||
println(ex)
|
||||
|
|
Loading…
Reference in New Issue