fix 状态的问题

This commit is contained in:
陈景阳
2019-10-08 20:20:48 +08:00
parent a081b02c13
commit 6b90d86ea2

View File

@@ -189,7 +189,7 @@ func ExecuteShellCmd(cmdStr string, cwd string, t model.Task, s model.Spider) (e
exitCode := exitError.ExitCode()
log.Errorf("exit error, exit code: %d", exitCode)
// 非kill 的错误类型
if exitCode != 9 {
if exitCode != -1 {
// 发生一次也需要保存
t.Error = err.Error()
t.FinishTs = time.Now()