Skip to content

Large logs don't appear in Airflow 3.1.2 #57896

@gvergnolle

Description

@gvergnolle

Apache Airflow version

3.1.2

If "Other Airflow 2/3 version" selected, which one?

None

What happened?

When the logs are of size ~100 lines, the log window is "cropped". As a result, we can't see logs properly:

  • Logs don't expand on the full log component
  • Depending on the size of the logs, the logs window either gets reduced or completely disappears. When it's reduced, we can't scroll to the top line.

The logs exist: I can download them or inspect them in the HTML, but the container is not visible from a user's POV.

The issue appeared on both Mozilla Firefox and Chrome, so I believe it's not related to the browser used.

This behaviour happened with the recent introduction of 3.1.2, I didn't observe it with the previous minor version 3.1.1.

What you think should happen instead?

We can normally scroll through the logs of a task, regardless of the size.

How to reproduce

Here's a simple DAG:

import logging
import pendulum
from airflow.sdk import (
    task,
    DAG,
)

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

N_LOGS = 100

with DAG(
    dag_id="test_dag",
    schedule=None,
    start_date=pendulum.datetime(2025, 1, 1, tz="UTC"),
    max_active_runs=1,
    is_paused_upon_creation=False,
) as dag:

    @task(dag=dag, task_id="print_stuff")
    def print_stuff():
        for i in range(N_LOGS):
            logger.info(f"Processing item {i}")

    print_stuff()

Try it with N_LOGS=100, and the window is significantly reduced. We can't scroll to the first line (see video attached)

Screen.Recording.2025-11-05.at.3.10.24.PM.mov

Try it with N_LOGS=1000, and all logs completely disappear (see screenshot). I am scrolling in the void, and I can't make the logs appear.

Image

ADDENDUM: The size of the browser window also directly impacts the rendering of the logs.

Operating System

Debian GNU/Linux 12 (bookworm)

Versions of Apache Airflow Providers

apache-airflow-providers-standard==1.9.1

Deployment

Docker-Compose

Deployment details

No response

Anything else?

I have observed the same behaviour with an EcsRunTaskOperator, so it may affect all operator types, making it a significant issue.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected_version:3.1Issues Reported for 3.1area:UIRelated to UI/UX. For Frontend Developers.area:corekind:bugThis is a clearly a bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions