Commit 024a6bf7 authored by vicotor's avatar vicotor

add v2

parent 389f14c3
......@@ -9,7 +9,7 @@ RUN go env -w CGO_ENABLED="1"
WORKDIR /build
RUN git clone https://code.wuban.net.cn/odysseus/scheduler && \
RUN git clone -b sc-v2 https://code.wuban.net.cn/odysseus/scheduler && \
git clone https://code.wuban.net.cn/odysseus/odysseus-protocol && \
git clone https://code.wuban.net.cn/odysseus/cache && \
git clone https://code.wuban.net.cn/odysseus/service-registry
......
......@@ -2,7 +2,7 @@ metrics_port = 28012
routines = 1
max_nm_update_ex = 40
dispatch_timeout = 3
poper_version = "v1"
poper_version = "v2"
[mongodb]
url="mongodb://127.0.0.1:27017"
......
......@@ -40,7 +40,7 @@ func (p *poperV2) CanAddBack() bool {
}
func (p *poperV2) AddBack(w types.Worker) {
// nothing need to do.
}
func (p *poperV2) PopWorker(ctx context.Context, rdb *redis.Client, task *odysseus.TaskContent, ex map[string]bool) (types.Worker, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment