This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
leo
/
LAPP_GAAS_GFrame_BACKEND
Watch
2
Star
2
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
添加调度派工的定时任务
pull/232/head
zhangxin
3 years ago
parent
381975cbab
commit
0c41276662
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
task/scheduler.go
+ 6
- 0
task/scheduler.go
View File
@ -31,6 +31,12 @@ func Start() error {
//if err != nil {
// return err
//}
// 添加派工
err
=
c
.
AddFunc
(
"*/2 * * * * ?"
,
StartApsRelease
)
if
err
!=
nil
{
return
err
}
// 添加解析订单excel的定时任务
err
=
c
.
AddFunc
(
"*/5 * * * * ?"
,
ParseWorkOrderFromFile
)
if
err
!=
nil
{
Write
Preview
Loading…
Cancel
Save