likyh commented on code in PR #3943:
URL:
https://github.com/apache/incubator-devlake/pull/3943#discussion_r1049397714
##########
runner/run_pipeline.go:
##########
@@ -23,23 +23,21 @@ import (
"github.com/apache/incubator-devlake/errors"
"github.com/apache/incubator-devlake/models"
"github.com/apache/incubator-devlake/plugins/core"
- "github.com/spf13/viper"
- "gorm.io/gorm"
+ "github.com/apache/incubator-devlake/plugins/core/dal"
)
// RunPipeline FIXME ...
func RunPipeline(
- _ *viper.Viper,
- log core.Logger,
- db *gorm.DB,
+ basicRes core.BasicRes,
pipelineId uint64,
runTasks func([]uint64) errors.Error,
) errors.Error {
// load tasks for pipeline
+ db := basicRes.GetDal()
var tasks []models.Task
- err := db.Where("pipeline_id = ? AND status = ?", pipelineId,
models.TASK_CREATED).Order("pipeline_row, pipeline_col").Find(&tasks).Error
+ err := db.All(&tasks, dal.Where("pipeline_id = ? AND status = ?",
pipelineId, models.TASK_CREATED))
Review Comment:
why delete the order? I think it's necessary.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]