uranusjr commented on issue #23087:
URL: https://github.com/apache/airflow/issues/23087#issuecomment-1103279536
Actually it seems like we already have an exception?
```pycon
>>> from airflow import DAG
>>> from airflow.timetables.simple import NullTimetable
>>> DAG("my-dag", schedule_interval="@once", timetable=NullTimetable())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/airflow/airflow/models/dag.py", line 426, in __init__
raise TypeError("cannot specify both 'schedule_interval' and
'timetable'")
TypeError: cannot specify both 'schedule_interval' and 'timetable'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]