🎨 执行超时反馈
This commit is contained in:
parent
0d36d56631
commit
8058946f14
|
@ -260,7 +260,12 @@ func RunHandler(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
cmd.Wait()
|
||||
logger.Warn("process", cmd.ProcessState)
|
||||
if 124 == cmd.ProcessState.ExitCode() {
|
||||
channelRet["cmd"] = "run-done"
|
||||
channelRet["output"] = "run program timeout"
|
||||
wsChannel.WriteJSON(&channelRet)
|
||||
wsChannel.Refresh()
|
||||
}
|
||||
}(rand.Int())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue