Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIP-84 Grid failing to load on deleted TIs #47113

Open
1 task done
pierrejeambrun opened this issue Feb 26, 2025 · 2 comments
Open
1 task done

AIP-84 Grid failing to load on deleted TIs #47113

pierrejeambrun opened this issue Feb 26, 2025 · 2 comments
Labels
affected_version:3.0.0alpha For all 3.0.0 alpha releases AIP-84 Modern Rest API area:UI Related to UI/UX. For Frontend Developers. kind:bug This is a clearly a bug priority:medium Bug that should be fixed before next release but would not block a release
Milestone

Comments

@pierrejeambrun
Copy link
Member

pierrejeambrun commented Feb 26, 2025

How to reproduce

Run this dag and let it settle (fail or success)

def try_something():
    if randint(0, 9) <= 2:
        return
    raise ValueError("Task Failed")


with DAG(
    dag_id="simple_with_tries",
    schedule="0 0 * * *",
    dagrun_timeout=datetime.timedelta(minutes=10),
    tags=["example2"],
    params={"example_key": "example_value"},
    catchup=False,
) as dag:
    run_this = PythonOperator(
        task_id="python_operator1", python_callable=try_something, retries=5, retry_delay=10
    )

    run_this_2 = PythonOperator(
        task_id="python_operator2", python_callable=try_something, retries=5, retry_delay=10
    )

Then edit the dag to create a new version, that does not contain the python_operator2 task, for instance by commenting it:

def try_something():
    if randint(0, 9) <= 2:
        return
    raise ValueError("Task Failed")


with DAG(
    dag_id="simple_with_tries",
    schedule="0 0 * * *",
    dagrun_timeout=datetime.timedelta(minutes=10),
    tags=["example2"],
    params={"example_key": "example_value"},
    catchup=False,
) as dag:
    run_this = PythonOperator(
        task_id="python_operator1", python_callable=try_something, retries=5, retry_delay=10
    )

    # run_this_2 = PythonOperator(
    #     task_id="python_operator2", python_callable=try_something, retries=5, retry_delay=10
    # )

Trigger this dag again and observe the console, or refresh the UI:

Image

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.
@pierrejeambrun pierrejeambrun added AIP-38 Modern Web Application kind:bug This is a clearly a bug labels Feb 26, 2025
@pierrejeambrun pierrejeambrun added this to the Airflow 3.0.0 milestone Feb 26, 2025
@dosubot dosubot bot added the area:UI Related to UI/UX. For Frontend Developers. label Feb 26, 2025
@vatsrahul1001 vatsrahul1001 added affected_version:3.0.0alpha For all 3.0.0 alpha releases priority:medium Bug that should be fixed before next release but would not block a release labels Feb 27, 2025
@bbovenzi
Copy link
Contributor

It's a 500 error, so this is something in the API. not with how we're rendering it. right?

@bbovenzi bbovenzi added the AIP-84 Modern Rest API label Feb 28, 2025
@pierrejeambrun
Copy link
Member Author

Yes server side. Updating the title to AIP-84

@pierrejeambrun pierrejeambrun changed the title AIP-38 Grid failing to load on deleted TIs AIP-84 Grid failing to load on deleted TIs Feb 28, 2025
@pierrejeambrun pierrejeambrun removed the AIP-38 Modern Web Application label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affected_version:3.0.0alpha For all 3.0.0 alpha releases AIP-84 Modern Rest API area:UI Related to UI/UX. For Frontend Developers. kind:bug This is a clearly a bug priority:medium Bug that should be fixed before next release but would not block a release
Projects
Status: No status
Development

No branches or pull requests

3 participants