Commit d5c8c1fc by 孙龙

up

parent 45f4bace
Showing with 0 additions and 2 deletions
...@@ -2,7 +2,6 @@ package worker ...@@ -2,7 +2,6 @@ package worker
import ( import (
"errors" "errors"
"fmt"
"go-crontab/common" "go-crontab/common"
"math/rand" "math/rand"
"os/exec" "os/exec"
...@@ -66,7 +65,6 @@ func (executor *Executor) ExecuteJob(info *common.JobExecuteInfo) { ...@@ -66,7 +65,6 @@ func (executor *Executor) ExecuteJob(info *common.JobExecuteInfo) {
// 执行并捕获输出 // 执行并捕获输出
output, err = cmd.CombinedOutput() output, err = cmd.CombinedOutput()
fmt.Println(string(output))
// 记录任务结束时间 // 记录任务结束时间
result.EndTime = time.Now() result.EndTime = time.Now()
result.Output = output result.Output = output
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment