Skip to content

Implementation paginated log retrieval#215

Open
golharam wants to merge 8 commits intomainfrom
bugfix/get_job_log_pagination
Open

Implementation paginated log retrieval#215
golharam wants to merge 8 commits intomainfrom
bugfix/get_job_log_pagination

Conversation

@golharam
Copy link
Copy Markdown
Contributor

@golharam golharam commented Apr 8, 2026

This PR implements paginated log retrieval instead of using StreamResponse.

First page

curl "https://apiserver/api/v1/jobs/{job_id}/log/paginated?limit=100"

Next page (use token from previous response)

curl "https://apiserver/api/v1/jobs/{job_id}/log/paginated?limit=100&next_token=ABC123..."

Get last 500 lines

curl "https://apiserver/api/v1/jobs/{job_id}/log/paginated?limit=500&start_from_head=false"

@golharam golharam requested a review from EricSDavis April 8, 2026 13:50
golharam and others added 7 commits April 8, 2026 10:20
Stop nulling the CloudWatch forward token when has_more is false.
This lets the frontend resume polling from the last cursor position
without re-fetching all previously loaded pages.
Add a typed error response model so the OpenAPI spec includes the
error shape for 404 responses. Also fix StatusResponse.status_code
type from status to int.
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