-
Notifications
You must be signed in to change notification settings - Fork 45
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
💄 适配更多的mysql,同时优化了并发问题,代码重构 #46
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yanyutin753
added a commit
to Yanyutin753/Suno2openai
that referenced
this pull request
Jun 22, 2024
Merge pull request wlhtea#46 from Yanyutin753/back
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
本次PR的内容:
COOKIES_PREFIX/cookies?cookies_type=list
post: 用于获得list形式的cookies定时任务调整,一小时执行一次,刷新并剔除无效的cookies
并发优化,同时适配更多版本的mysql,也支持docker-compose.yml,部署mysql和suno2openai
对添加和刷新cookies速度进行极大的提升,使用BATCH_SIZE用于处理cookies的并发数
整体代码结构优化,使得代码结构性更强
日志处理升级,使得报错和请求处理信息更加清晰
优化返回消息,同时提升首字返回速度,并对异常进行重试处理
重构了suno.py,异步化函数,简化代码结构
新增
MAX_TIME
变量,用于设定请求返回的最大时间(默认:5min),使得接口返回时间稳定性提高新增
PROXY
变量,用于代理服务器请求suno