Skip to content

Commit

Permalink
add debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Nov 25, 2024
1 parent 2c2857b commit d3e38d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ func (t *SimulationTask) SimulationRun(containerName string, xlogger *logger.Log
err error) {
logger.Info("will execute in %s", containerName)
doneChan := make(chan struct{})
ticker := time.NewTicker(30 * time.Second)
ticker := time.NewTicker(1 * time.Second)
go func() {
for {
select {
Expand Down
13 changes: 7 additions & 6 deletions dbm-services/mysql/db-simulation/model/tb_simulation_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@ func CreateTask(taskid, requestid, version string, billTaskId string) (err error
return err
}
return DB.Create(&TbSimulationTask{
TaskId: taskid,
RequestID: requestid,
BillTaskId: billTaskId,
MySQLVersion: version,
Phase: PhaseWaitting,
CreateTime: time.Now(),
TaskId: taskid,
RequestID: requestid,
BillTaskId: billTaskId,
MySQLVersion: version,
Phase: PhaseWaitting,
HeartbeatTime: time.Now(),
CreateTime: time.Now(),
}).Error
}

0 comments on commit d3e38d6

Please sign in to comment.