Skip to content

Commit

Permalink
添加流程申请。
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyulei committed Jul 16, 2020
1 parent 38cac40 commit a16e4f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion apis/process/workOrder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"ferry/global/orm"
"ferry/models/process"
"ferry/models/system"
. "ferry/pkg/response/response"
"ferry/pkg/service"
"ferry/tools"
"ferry/tools/app"
Expand Down
5 changes: 3 additions & 2 deletions pkg/task/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ package task
*/

import (
"ferry/pkg/logger"
"ferry/pkg/task/worker"

"github.com/RichardKnop/machinery/v1/log"
)

func Start() {
// 启动异步任务框架
taskWorker := worker.NewAsyncTaskWorker(0)
err := taskWorker.Launch()
if err != nil {
logger.Errorf("启动machinery失败,%v", err.Error())
log.ERROR.Println("启动machinery失败,%v", err.Error())
}
}

0 comments on commit a16e4f4

Please sign in to comment.