feat: add training retry time (#3187)
* feat: add training retry time * remoce log
This commit is contained in:
@@ -39,10 +39,12 @@ export async function generateVector(): Promise<any> {
|
||||
const data = await MongoDatasetTraining.findOneAndUpdate(
|
||||
{
|
||||
mode: TrainingModeEnum.chunk,
|
||||
lockTime: { $lte: addMinutes(new Date(), -1) }
|
||||
retryCount: { $gte: 0 },
|
||||
lockTime: { $lte: addMinutes(new Date(), -6) }
|
||||
},
|
||||
{
|
||||
lockTime: new Date()
|
||||
lockTime: new Date(),
|
||||
$inc: { retryCount: -1 }
|
||||
}
|
||||
).select({
|
||||
_id: 1,
|
||||
|
||||
Reference in New Issue
Block a user