Skip to content

Fix jump to most recent logs and jump by default #54174

Closed

Description

@eladkal

Body

By default jump to the most recent logs. And also fix the 'jump' begin / end function. Jumping to the end while the logs are big will start scrolling slowly for a while instead of taking you directly to the end of logs.

For instance the following dag:

from datetime import datetime
from airflow.decorators import dag, task


@dag(
    dag_id='log_generator',
    description='Generate 40K log lines',
    schedule=None,
    start_date=datetime(2024, 1, 1),
    catchup=False,
)
def log_generator_dag():
    @task
    def generate_40k_logs():
        """Generate 40K log lines"""
        for i in range(40000):
            print(f"Log line {i + 1}: This is a test log entry for performance testing")

    generate_40k_logs()


log_generator_dag()

The UI toggle allows only 20k rows:

Image

The only way to continue to see the rest of the logs is clicking twice on the down arrow. This will start to present the next log lines one by one which takes forever.

This is very important especially for sensors or KPO which tend to have many log lines of polling status of remote per interval/poke.

I know we can classify this as feature/improvement but from my perspective this is a bug. I don't think it was intentional to limit this capability.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Activity

  1. added
    kind:bug
    area:UI
    kind:task
    affected_version:3.0
    on Aug 6, 2025
  2. added this to the Airflow 3.0.5 milestone on Aug 6, 2025
  3. changed the title [-]Allow jumping to the end of task log[/-] [+]Jump to most recent logs by default[/+] on Aug 6, 2025
  4. pierrejeambrun commented on Aug 6, 2025

    @pierrejeambrun
    Member

    Yeah I think the 'go to bottom' button is somewhat broken, scrolling line per line is not expected. So 'bug fix' seems appropriate

  5. changed the title [-]Jump to most recent logs by default[/-] [+]Fix jump to most recent logs and jump by default[/+] on Aug 6, 2025
  6. sujitha-saranam commented on Aug 7, 2025

    @sujitha-saranam
    Contributor

    i would like to work on this. Could you please assign it to me?

  7. pierrejeambrun commented on Aug 7, 2025

    @pierrejeambrun
    Member

    @sujitha-saranam go ahead, you are assigned!

  8. sujitha-saranam commented on Aug 13, 2025

    @sujitha-saranam
    Contributor

    Hi @pierrejeambrun
    Created PR for this issue. Please verify #54447.

  9. sujitha-saranam commented on Aug 22, 2025

    @sujitha-saranam
    Contributor

    hi @pierrejeambrun
    updated the PR as per your suggestions. Please verify #54447

  10. added
    priority:medium
    on Sep 2, 2025
  11. removed this from the Airflow 3.2.0 milestone on Sep 22, 2025
  12. ashb commented on Jan 15, 2026

    @ashb
    Member

    Possible duplicate of #55173

  13. pierrejeambrun commented on Jan 16, 2026

    @pierrejeambrun
    Member

    I'd prefer to keep them separate, this one really about the jump to 'bottom/top' not working properly, and the other one as a general performance issue of the log viewer.

  14. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @sujitha-saranam We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

  15. pierrejeambrun commented on Mar 5, 2026

    @pierrejeambrun
    Member

    This was fixed in #60806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected_version:3.0affected_version:3.1area:UIkind:bugkind:taskpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions