AlistGo / AlistGo/alist

Paged api to query on-going jobs

Aperta
#8,264 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Go
Stelle
50.2k
Fork
7.9k
Merge medio
7g 21h
PR unite (30g)
6

Descrizione

### 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_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.