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
48e41ace
authored
Aug 26, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
5c3b5952
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
worker/Scheduler.go
worker/Scheduler.go
View file @
48e41ace
...
...
@@ -75,7 +75,7 @@ func (scheduler *Scheduler) TryStartJob(jobPlan *common.JobSchedulePlan) {
scheduler
.
jobExecutingTable
[
jobPlan
.
Job
.
Name
]
=
jobExecuteInfo
// 执行任务
fmt
.
Println
(
"执行任务:"
,
jobExecuteInfo
.
Job
.
Name
,
" 计划执行时间:"
,
jobExecuteInfo
.
PlanTime
.
Format
(
"2006-01-02 15:04:05"
),
" 实际执行时间:"
,
jobExecuteInfo
.
RealTime
.
Format
(
"2006-01-02 15:04:05"
))
fmt
.
Println
(
"执行任务:"
,
jobExecuteInfo
.
Job
.
Name
,
jobExecuteInfo
.
Job
.
JobEtcdName
,
" 计划执行时间:"
,
"任务命令:"
,
jobExecuteInfo
.
Job
.
Command
,
jobExecuteInfo
.
PlanTime
.
Format
(
"2006-01-02 15:04:05"
),
" 实际执行时间:"
,
jobExecuteInfo
.
RealTime
.
Format
(
"2006-01-02 15:04:05"
))
logger
.
Info
(
fmt
.
Sprintf
(
"执行普通任务:[%s],任务内容: [%s] , 计划执行时间:%s 实际执行时间:%s"
,
jobExecuteInfo
.
Job
.
Name
,
jobExecuteInfo
.
Job
.
Command
,
jobExecuteInfo
.
PlanTime
.
Format
(
"2006-01-02 15:04:05"
),
jobExecuteInfo
.
RealTime
.
Format
(
"2006-01-02 15:04:05"
)))
G_executor
.
ExecuteJob
(
jobExecuteInfo
)
}
...
...
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