Skip to content

Comments

Refine task progress#160

Open
saimouu wants to merge 8 commits intomainfrom
feature/refine-task-progress
Open

Refine task progress#160
saimouu wants to merge 8 commits intomainfrom
feature/refine-task-progress

Conversation

@saimouu
Copy link
Collaborator

@saimouu saimouu commented Feb 18, 2026

Task progress updated to use SSE.

/api/v1/job?project=[uuid] now also returns JobStats.

@saimouu saimouu linked an issue Feb 18, 2026 that may be closed by this pull request

status = resolve_job_status(total, success, failed)

# TODO: maybe buffer to avoid spamming
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Perhaps the whole job progress could be split into ~1/50th pieces depending on how many papers there are. E.g. For 10 000 papers, we would publish progress every 200 papers.

Another one would be to have some kind of "throttling" queue. We would limit job progress events to ~1 per 5 seconds, and drop events that arrive before that time.

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.

Refine task progress API & view

2 participants