Skip to content

App log lazy fetching - #7762

Merged
popojk merged 6 commits into
mainfrom
app_log_lazy_fetching
Aug 10, 2026
Merged

App log lazy fetching#7762
popojk merged 6 commits into
mainfrom
app_log_lazy_fetching

Conversation

@popojk

@popojk popojk commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Tracking issue

Add a log source field so the UI can fetch live or live + persisted on it's own decision.

Why are the changes needed?

What changes were proposed in this pull request?

Proto changes

How was this patch tested?

Labels

Please add one or more of the following labels to categorize your PR:

  • added: For new features.
  • changed: For changes in existing functionality.
  • deprecated: For soon-to-be-removed features.
  • removed: For features being removed.
  • fixed: For any bug fixed.
  • security: In case of vulnerabilities

This is important to improve the readability of release notes.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Stack

If you do use git town to manage PR Stacks, the stack relevant to this PR
will show below. Otherwise, you can ignore this section.

Docs link

Signed-off-by: Alex Wu <c.alexwu@gmail.com>
@github-actions github-actions Bot added the flyte2 label Aug 4, 2026
// Which of the two backends a batch of lines was read from. Distinct from LogsSource, which
// selects what a request asks for; this reports what a response actually carries.
enum LogLineSource {
LOG_LINE_SOURCE_UNSPECIFIED = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we add a comment explaining that we use live logs by default and fall back to persisted logs if they’re not available?

popojk added 3 commits August 5, 2026 14:16
Signed-off-by: Alex Wu <c.alexwu@gmail.com>
Signed-off-by: Alex Wu <c.alexwu@gmail.com>
Signed-off-by: Alex Wu <c.alexwu@gmail.com>
AdilFayyaz
AdilFayyaz previously approved these changes Aug 7, 2026

@AdilFayyaz AdilFayyaz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just one comment, otherwise LGTM! 👍

}

// Which backends to stream from. Defaults to LIVE_OR_PERSISTED. Use LIVE_ONLY to get the live
// tail without paying for a persisted-history scan, and re-request with LIVE_OR_PERSISTED when

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This comment is likely stale under the new semantics. To return history for a running app the request would be for PERSISTED_ONLY right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Signed-off-by: Alex Wu <c.alexwu@gmail.com>
Signed-off-by: Alex Wu <c.alexwu@gmail.com>
@popojk
popojk merged commit 38eb24b into main Aug 10, 2026
24 checks passed
@popojk
popojk deleted the app_log_lazy_fetching branch August 10, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants