Skip to content

Commit

Permalink
feat: circle mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangliang committed Jul 6, 2021
1 parent e6f3aa3 commit 22fae3c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
2 changes: 2 additions & 0 deletions pkg/agent/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (m *manager) startAgentEngine(content []byte) error {

func (m *manager) startReadyService() {
m.stream.setPlanCount(len(m.engine.plans))
var executors []*executor
for _, plan := range m.engine.plans {
treeCfg := m.engine.trees[plan.TreeName]
tree := loader.CreateBevTreeFromConfig(treeCfg, m.engine.registerMap)
Expand All @@ -84,6 +85,7 @@ func (m *manager) startReadyService() {
tree: tree,
metadata: m.engine.metadata,
}
executors = append(executors, executor)
m.startExecutor(executor)
}
}
Expand Down
42 changes: 23 additions & 19 deletions pkg/transfer/transfer.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/transfer/transfer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ enum ACTION {
STOP_AGENT = 1;
REPORT_DATA = 2;
FINISH_PLAN = 3;
START_CIRCLE = 4;
}

message Mail {
Expand Down

0 comments on commit 22fae3c

Please sign in to comment.