Commit 4952a48c by archer

perf: unlock training

parent 90f5f84b
......@@ -182,11 +182,6 @@ A2:
return generateQA();
}
// unlock
await TrainingData.findByIdAndUpdate(trainingId, {
lockTime: new Date('2000/1/1')
});
setTimeout(() => {
generateQA();
}, 1000);
......
......@@ -135,12 +135,6 @@ export async function generateVector(): Promise<any> {
return generateVector();
}
// unlock
err.response?.statusText !== 'Too Many Requests' &&
(await TrainingData.findByIdAndUpdate(trainingId, {
lockTime: new Date('2000/1/1')
}));
setTimeout(() => {
generateVector();
}, 1000);
......
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 sign in to comment