Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
4952a48c
authored
Aug 14, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: unlock training
parent
90f5f84b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
11 deletions
+0
-11
client/src/service/events/generateQA.ts
+0
-5
client/src/service/events/generateVector.ts
+0
-6
No files found.
client/src/service/events/generateQA.ts
View file @
4952a48c
...
@@ -182,11 +182,6 @@ A2:
...
@@ -182,11 +182,6 @@ A2:
return
generateQA
();
return
generateQA
();
}
}
// unlock
await
TrainingData
.
findByIdAndUpdate
(
trainingId
,
{
lockTime
:
new
Date
(
'2000/1/1'
)
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
generateQA
();
generateQA
();
},
1000
);
},
1000
);
...
...
client/src/service/events/generateVector.ts
View file @
4952a48c
...
@@ -135,12 +135,6 @@ export async function generateVector(): Promise<any> {
...
@@ -135,12 +135,6 @@ export async function generateVector(): Promise<any> {
return
generateVector
();
return
generateVector
();
}
}
// unlock
err
.
response
?.
statusText
!==
'Too Many Requests'
&&
(
await
TrainingData
.
findByIdAndUpdate
(
trainingId
,
{
lockTime
:
new
Date
(
'2000/1/1'
)
}));
setTimeout
(()
=>
{
setTimeout
(()
=>
{
generateVector
();
generateVector
();
},
1000
);
},
1000
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment