mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 20:27:46 +08:00
[REV] change topic, from builder to worker
This commit is contained in:
parent
0ad17f4888
commit
3d97bf4094
@ -23,6 +23,7 @@ import (
|
|||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
api_db "github.com/goodrain/rainbond/api/db"
|
api_db "github.com/goodrain/rainbond/api/db"
|
||||||
"github.com/goodrain/rainbond/mq/api/grpc/client"
|
"github.com/goodrain/rainbond/mq/api/grpc/client"
|
||||||
|
"github.com/goodrain/rainbond/worker/discover"
|
||||||
"github.com/pquerna/ffjson/ffjson"
|
"github.com/pquerna/ffjson/ffjson"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -36,7 +37,7 @@ func sendTask(body map[string]interface{}, taskType string, mqClient *client.MQC
|
|||||||
TaskBody: bodyJ,
|
TaskBody: bodyJ,
|
||||||
User: "define",
|
User: "define",
|
||||||
}
|
}
|
||||||
eq, errEq := api_db.BuildTaskBuild(bs)
|
eq, errEq := api_db.BuildTaskBuildWithTopic(bs, discover.WTOPIC)
|
||||||
if errEq != nil {
|
if errEq != nil {
|
||||||
logrus.Errorf("build equeue stop request error, %v", errEq)
|
logrus.Errorf("build equeue stop request error, %v", errEq)
|
||||||
return errEq
|
return errEq
|
||||||
|
Loading…
Reference in New Issue
Block a user