boushphong opened a new pull request, #30117: URL: https://github.com/apache/airflow/pull/30117
closes: #22474 - This commit is to fix the inconsistent returned value of `airflow dags next-execution` cli command when the dag is paused and catchup is False In brief: - When the dag is unpaused, the cli command would get the next-execution run from the `DagRun` model. However, when the dag is paused, getting the next-execution run from the `DagRun` model would yield the next dag run time from the last executed dag run, which is incorrect. - To avoid this, we can get the next-execution run time from `dag_model.next_dag_run` (as in: [dag.html](https://github.com/apache/airflow/blob/main/airflow/www/templates/airflow/dag.html#L143)) to make it more consistent with the UI. This is my first PR, please let me know if there is anything I could do differently. <!-- Thank you for contributing! Please make sure that your code changes are covered with tests. And in case of new features or big changes remember to adjust the documentation. -- 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]
