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

请求添加延时上传队列功能 #1277

Open
3 tasks done
GengMetal opened this issue Sep 25, 2024 · 0 comments
Open
3 tasks done

请求添加延时上传队列功能 #1277

GengMetal opened this issue Sep 25, 2024 · 0 comments
Assignees

Comments

@GengMetal
Copy link

前置阅读 | Pre-reading

PicGo的版本 | PicGo Version

v2.4.0-beta8

系统信息 | System Information

Windows

功能请求 | Feature request

有些图床限制上传速率,所以请求添加延时上传队列功能。

比如图床限制每分钟只能上传10张图,我要上传600张图片。

初始化一个队列,根据图床的限制,计算上传间隔时间。对于每分钟10张的限制,可以设置每6秒上传一张。

上传逻辑:
从队列中取出一张图片。
调用上传接口上传图片。
处理上传结果(成功或失败)。
等待设定的间隔时间。
循环执行,直到队列为空。

对于上传失败的图片,可以选择重试一定次数。

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

No branches or pull requests

2 participants