AlistGo / AlistGo/alist

Paged api to query on-going jobs

Open
#8,264 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
50.2k
Forks
7.9k
Avg merge
7d 21h
Merged PRs (30d)
6

Description

### Please make sure of the following things

- [x] I have read the [documentation](https://alist.nn.ci).
- [x] I'm sure there are no duplicate issues or discussions.
- [x] I'm sure this feature is not implemented.
- [x] I'm sure it's a reasonable and popular requirement.

### Description of the feature / 需求描述

When large number of transfering jobs (~8k in my case) on going, staying at `https://domain.tld/@manage/tasks/copy` causes the browser to pull a full list of on-going jobs from `api/task/copy/undone` every second.

![Image](https://github.com/user-attachments/assets/79728795-75c6-4b0f-ba17-823d654476ed)

This is very time-consuming and inefficient (constantly causing ~30Mbps of network traffic) .

### Suggested solution / 实现思路

Provide a paged endpoint like `api/task/copy/undone?page=10` and only return related jobs instead of the full job list.

### Additional context / 附件

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.