添加流程申请。
This commit is contained in:
parent
38cac4050c
commit
a16e4f4dc7
@ -6,7 +6,6 @@ import (
|
|||||||
"ferry/global/orm"
|
"ferry/global/orm"
|
||||||
"ferry/models/process"
|
"ferry/models/process"
|
||||||
"ferry/models/system"
|
"ferry/models/system"
|
||||||
. "ferry/pkg/response/response"
|
|
||||||
"ferry/pkg/service"
|
"ferry/pkg/service"
|
||||||
"ferry/tools"
|
"ferry/tools"
|
||||||
"ferry/tools/app"
|
"ferry/tools/app"
|
||||||
|
@ -5,8 +5,9 @@ package task
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"ferry/pkg/logger"
|
|
||||||
"ferry/pkg/task/worker"
|
"ferry/pkg/task/worker"
|
||||||
|
|
||||||
|
"github.com/RichardKnop/machinery/v1/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Start() {
|
func Start() {
|
||||||
@ -14,6 +15,6 @@ func Start() {
|
|||||||
taskWorker := worker.NewAsyncTaskWorker(0)
|
taskWorker := worker.NewAsyncTaskWorker(0)
|
||||||
err := taskWorker.Launch()
|
err := taskWorker.Launch()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("启动machinery失败,%v", err.Error())
|
log.ERROR.Println("启动machinery失败,%v", err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user