Skip to content

Show DAG parse error if 'timetable' and 'schedule_interval' are set together #23087

@sdebruyn

Description

@sdebruyn

Apache Airflow version

2.2.5 (latest released)

What happened

In the UI I see 1 day, 00:00:00 under Schedule instead of the summary I've defined in my timetable:

    @property
    def summary(self) -> str:
        return "Daily (DailyTimetable)"

What you think should happen instead

According to the docs, overriding summary should change how the timetable is represented in the UI: https://airflow.apache.org/docs/apache-airflow/stable/howto/timetable.html#timetable-display-in-ui

How to reproduce

from airflow.timetables.base import DagRunInfo, DataInterval, TimeRestriction, Timetable


class DailyTimetable(Timetable):

    @property
    def summary(self) -> str:
        return "Daily (DailyTimetable)"

I can't share our implementation of this timetable, but I added the relevant code for the summary that is deployed.

Operating System

docker image apache/airflow:2.2.5-python3.9

Versions of Apache Airflow Providers

Apache Airflow 2.2.5

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions