ayush1291 opened a new issue #11758:
URL: https://github.com/apache/airflow/issues/11758


   When trying to run a dag with `catchup=False` and 
`schedule_interval=timedelta(minutes=5)`. Basically, here we are using 
timedelta function for schedule_interval.
    Here is sample dag:
   
   ```
   dag = DAG(
       'child',
       max_active_runs=1,
       description='A sample pipeline run',
       start_date=days_ago(0),
       catchup=False,
       schedule_interval=timedelta(minutes=5)
   )
   ```
   Now, the first runs **execution_time should not have seconds and 
milliseconds** part. It should be 0. 
   However, we are getting wrong execution_time. It is also adding seconds and 
milliseconds there.
   
   <img width="999" alt="Screenshot 2020-10-23 at 11 55 38 AM" 
src="https://user-images.githubusercontent.com/17189579/96968222-50033b00-152e-11eb-9a1e-e31cd4222c77.png";>
   
   
   As we can see in the runs, there is 5 minutes gap between schedules, which 
is fine. But, there is no consistency of those 5 minutes. Also, seconds and 
milliseconds is also not 0.
   
   Also, note that the above scenario **runs fine when we use cron (*/5 * * * 
*)**, instead of timedelta function. 
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to