This commit is contained in:
Mr. Lan
2020-07-15 01:40:56 +08:00
parent 1f5c67832b
commit ad740914d9
40 changed files with 3278 additions and 124 deletions

19
pkg/task/server.go Normal file
View File

@@ -0,0 +1,19 @@
package task
/*
@Author : lanyulei
*/
import (
"ferry/pkg/logger"
"ferry/pkg/task/worker"
)
func Start() {
// 启动异步任务框架
taskWorker := worker.NewAsyncTaskWorker(0)
err := taskWorker.Launch()
if err != nil {
logger.Errorf("启动machinery失败%v", err.Error())
}
}