XD-DENG edited a comment on issue #3834: [AIRFLOW-2965] CLI tool to show the 
next execution datetime
URL: 
https://github.com/apache/incubator-airflow/pull/3834#issuecomment-419717609
 
 
   Hi @r39132 , I have refined the implementation for this `next_execution` 
CLI. 
   
   **Implementation**
   - It can handle different schedule_interval (Cron, timedelta, `None`, preset 
including "@once")
   - For `None` or `@once` schedule_interval, it will return `None` as result
   - If there is no `latest_execution_date` found, it prints a reminder ("Only 
applicable when there is execution record found") and returns `None` as result.
   - It will print a reminder if the DAG is paused at that moment.
   
   **Tests**
   Test cases has been added based on four example DAG files
   - 'example_bash_operator' (schedule_interval is `'0 0 * * *'`)
   - 'latest_only' (schedule_interval is `timedelta(hours=4)`)
   - 'example_python_operator' (schedule_interval=`None`)
   - 'example_xcom' (schedule_interval="`@once`")
   
   This helps us cover different scenarios.
   
   Please take another look. Many thanks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to