Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Bug: novelai队列429错误 #217 #228

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix Bug: novelai队列429错误 #217 #228

wants to merge 1 commit into from

Conversation

MirrorCY
Copy link
Member

@MirrorCY MirrorCY commented Feb 8, 2024

fix #217

Comment on lines +289 to +293
if (config.globalConcurrency) {
while (globalTasks.size >= config.globalConcurrency) {
await sleep(100)
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a great implementation, I think it would be better that you have a pending list caching those pending request and then pick from it when you have requests resolved.

@MirrorCY MirrorCY closed this Feb 11, 2024
@MirrorCY MirrorCY deleted the 42 branch February 11, 2024 09:26
@MirrorCY MirrorCY restored the 42 branch May 10, 2024 07:56
@MirrorCY MirrorCY reopened this May 10, 2024
@MirrorCY
Copy link
Member Author

@MaikoTan 你可以在这里继续(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: novelai队列429错误
2 participants