Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
go-crontab
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d5c8c1fc
authored
Aug 27, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
45f4bace
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
worker/Executor.go
worker/Executor.go
View file @
d5c8c1fc
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment