henry3260 commented on code in PR #67395:
URL: https://github.com/apache/airflow/pull/67395#discussion_r3294165221


##########
airflow-core/src/airflow/cli/commands/dag_command.py:
##########


Review Comment:
   ```suggestion
                   "This Dag may have schedule interval '@once' or `None`.",
   ```
   just for keep consistnecy



##########
airflow-core/src/airflow/cli/commands/dag_command.py:
##########
@@ -368,7 +368,18 @@ def iter_next_dagrun_info() -> Iterator[DagRunInfo | None]:
         else:
             columns = ["logical_date", "data_interval.start", 
"data_interval.end", "run_after"]
         getters = [(c, operator.attrgetter(c)) for c in columns]
-        AirflowConsole().print_as_table([{n: f(o) for n, f in getters} for o 
in iter_next_dagrun_info()])
+        rows = []
+        for info in iter_next_dagrun_info():
+            if info is None:
+                print(
+                    "[WARN] No following schedule can be found. "
+                    "This DAG may have schedule interval '@once' or `None`.",

Review Comment:
   ```suggestion
                       "This Dag may have schedule interval '@once' or `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]

Reply via email to