Skip to content

Add pagination to get_log in the rest API #29405

Description

@bbovenzi

Description

Right now, the get_log endpoint at /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{task_try_number} does not have any pagination and therefore we can be forced to load extremely large text blocks, which makes everything slow. (see the workaround fix we needed to do in the UI: #29390)

In task_log_reader, we do have log_pos and offset (see here). It would be great to expose those parameters in the REST API in order to break apart task instance logs into more manageable pieces.

Use case/motivation

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions