Browse Source

去掉调试代码

develop
zhangxin 2 years ago
parent
commit
a0953fecca
2 changed files with 1 additions and 9 deletions
  1. +1
    -1
      dao/etl/implments/ETCDServiceClient.dao.impl.go
  2. +0
    -8
      services/etl/implments/Extract.service.impl.go

+ 1
- 1
dao/etl/implments/ETCDServiceClient.dao.impl.go View File

@ -126,7 +126,7 @@ func (impl *ETCDServiceImplement) ListenLeaseRespChan() {
for {
select {
case <-impl.CTX.Done():
fmt.Println("context 结束运行")
//fmt.Println("context 结束运行")
return
case leaseKeepResp := <-impl.KeepAliveChan:
if leaseKeepResp == nil {


+ 0
- 8
services/etl/implments/Extract.service.impl.go View File

@ -107,14 +107,6 @@ func (impl *ExtractServiceImplement) StandardExtract(task *model.TaskHead) (err
func (impl *ExtractServiceImplement) ExtractByShell(shellLi []model.Shell, task *model.TaskHead, recordDao dal.RecordDao, batchId string, sourceDsn string, targetDsn string) (err error) {
for _, shell := range shellLi {
shellPath := path.Join(global.ShellPath, shell.ShellName)
//fmt.Println("------------------------------------------------------------------")
//fmt.Println("shellPath:", shellPath)
//fmt.Println("sourceDsn:", sourceDsn)
//fmt.Println("targetDsn:", targetDsn)
//fmt.Println("global.DatabaseDsn:", global.DatabaseDsn)
//fmt.Println("global.MongoDsn:", global.MongoDsn)
//fmt.Println("strconv.Itoa(task.TaskId):", strconv.Itoa(task.TaskId))
//fmt.Println("----------------------------------------------")
cmd := exec.Command(shellPath, sourceDsn, targetDsn, global.DatabaseDsn, global.MongoDsn, strconv.Itoa(task.TaskId))
buf, err := cmd.Output()
if err != nil {


Loading…
Cancel
Save