Skip to content

UI glitch in DAG schedule after migration from 2.10 to 3.0.0 #49617

Closed

Description

@vatsrahul1001

Apache Airflow version

3.0.0

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

No response

What happened?

UI glitch after migration from 2.10 to 3.0.0. Schedule using timedeta showing as json in UI

Image Image

What you think should happen instead?

No response

How to reproduce

Use a DAG which has schedule as schedule_interval=timedelta(days=365, hours=6) in AF2 and migrate

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    affected_version:3.0
    kind:bug
    needs-triage
    on Apr 23, 2025
  2. added
    area:UI
    on Apr 23, 2025
  3. removed
    needs-triage
    on Apr 23, 2025
  4. tirkarthi commented on Apr 23, 2025

    @tirkarthi
    Contributor

    What is the timetable_summary value for the dag in the dag table? Does reserialization using airflow dags reserialize update the timetable_summary value ?

  5. added
    priority:high
    on Apr 23, 2025
  6. added this to the Airflow 3.0.1 milestone on Apr 24, 2025
  7. phanikumv commented on Apr 24, 2025

    @phanikumv
    Contributor
  8. pierrejeambrun commented on Apr 25, 2025

    @pierrejeambrun
    Member

    That's because the dag were not modified to work with AF3, meaning that the DAG cannot be reparsed successfully, most likely because we didn't change schedule_interval to schedule.

    Once the required change are made for the Dag to be parsable again, the interval will be converted correctly to the new format and displayed properly.

    I don't think there is anything specific to be done there, and I would recommend closing the issue, as long as the user upgrade its dag to be AF3 compatible, this UI glitch will go away.

    What do you think Rahul ?

  9. vatsrahul1001 commented on Apr 25, 2025

    @vatsrahul1001
    ContributorAuthor

    Yes, I am fine with closing this issue. But we should document this somewhere in the upgrade docs if not already WDYT @pierrejeambrun

  10. pierrejeambrun commented on Apr 25, 2025

    @pierrejeambrun
    Member

    Documenting that DAG authors need to upgrade DAGs to AF3 syntax before migrating ? Or this particular schedule_interval case ? Basically they see dagImportErrors in the UI and fixing those will solve the issue.

    Maybe we can add an explicit note about it yes.

  11. pierrejeambrun commented on Apr 25, 2025

    @pierrejeambrun
    Member

    @sunank200 has a fix for this.

  12. sunank200 commented on Apr 25, 2025

    @sunank200
    Collaborator

    PR: 49769

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

Metadata

Metadata

Labels

affected_version:3.0area:UIarea:corekind:bugpriority:high

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions