RNHTTR commented on code in PR #72029:
URL: https://github.com/apache/airflow/pull/72029#discussion_r3873805609
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/dags.py:
##########
@@ -148,6 +152,12 @@ def get_dags(
order_by=order_by,
dag_ids=readable_dags_filter.value,
)
+ if is_scheduled is not None:
+ unscheduled_timetable_types = ("NullTimetable", "PartitionedAtRuntime")
Review Comment:
@dstandish had a good point -- Should we skip the hard code logic
altogether, add `can_be_scheduled` to the `DagModel` and then do something
like...
```python
is_scheduled: Annotated[
FilterParam[bool | None],
Depends(filter_param_factory(DagModel.timetable_can_be_scheduled, bool |
None)),
],
```
--
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]