AlistGo / AlistGo/alist

Paged api to query on-going jobs

Abierto
#8,264 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Go
Estrellas
50.2k
Forks
7.9k
Merge medio
7 d 21 h
PR fusionados (30 d)
6

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.