frankbreetz opened a new issue #22474:
URL: https://github.com/apache/airflow/issues/22474


   ### Apache Airflow version
   
   2.2.2
   
   ### What happened
   
   Current time 16:54 UTC
   Execution Schedule: * * * * *
   Last Run: 16:19 UTC
   DAG Paused
   Catchup=False
   
   `airflow dags next-execution sample_dag`
   returns
   ```
   [INFO] Please be reminded this DAG is PAUSED now.
   2022-03-22T16:20:00+00:00
   ```
   
   ### What you think should happen instead
   
   I would expect
   ```
   [INFO] Please be reminded this DAG is PAUSED now.
   2022-03-22T16:53:00+00:00
   ```
   To be returned since when you unpause the DAG that is the next executed DAG
   
   ### How to reproduce
   
   Create a simple sample dag with a schedule of * * * * * and pause with 
catchup=False and wait a few minutes, then run 
   `airflow dags next-execution sample_dag`
   
   ### Operating System
   
   Debian
   
   ### Versions of Apache Airflow Providers
   
   Airflow 2.2.2
   
   ### Deployment
   
   Astronomer
   
   ### 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
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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