8000 feat: support upload persist by hisproc · Pull Request #8161 · AlistGo/alist · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: support upload persist #8161

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

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

Conversation

hisproc
Copy link
Contributor
@hisproc hisproc commented Mar 17, 2025

目的

Fixes: #8145 解决上传任务没有持久化的问题,而这个在文档配置项中是支持的,从用户角度来看,持久化上传任务能快速在服务崩溃后重启时回顾之前的状态

修改内容

参考CopyTask的代码格式,新增了UploadTask的字段做持久化,测试状态正常,重启后上传任务仍存在

image

@xhofe
Copy link
Collaborator
xhofe commented Mar 18, 2025

我理解这个任务应该是恢复不了的,因为文件已经丢失无法上传了?

@hisproc
Copy link
Contributor Author
hisproc commented Mar 18, 2025

我理解这个任务应该是恢复不了的,因为文件已经丢失无法上传了?

对,目的不是为了重启后恢复,而是说还有个记录可以知道哪些任务在崩溃的时候还没成功,这样他们至少还能自己后续再对这些内容重试。我看了下文档的配置样例里面也有这个参数 ,如果计划是不支持的话我感觉文档更新一下会比较好https://alist.nn.ci/zh/config/configuration.html#%E5%88%9D%E5%A7%8B%E9%85%8D%E7%BD%AE。

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.

配置文件中的任务持久化选项不生效
2 participants
0