Commit 3570b286 authored by vicotor's avatar vicotor

upate

parent e89eab66
......@@ -68,7 +68,7 @@ func (d *WorkerRunningOperator) FindWorkerByModelId(ctx context.Context, modelId
// sort by wait time
findOptions := options.Find()
findOptions.SetLimit(int64(limit))
findOptions.SetSort(bson.D{{"exec_time", 1}})
findOptions.SetSort(bson.D{{"exec_time", -1}})
selector := bson.M{"model_id": modelId}
cursor, err := d.col.Find(ctx, selector, findOptions)
......
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