KostyaEsmukov commented on issue #8166: Task Duration Bug: Doesn't respect 
number of runs
URL: https://github.com/apache/airflow/issues/8166#issuecomment-609966613
 
 
   I took a dag with 5 minutes interval (not the one on the pictures).
   
   And the reason for it generating way more points than the "number of runs" 
param is, I think, the following:
   
   ```
   >>> dag._schedule_interval
   datetime.timedelta(days=1)
   >>> dag.schedule_interval
   datetime.timedelta(seconds=300)
   ```
   
   Because of that the `dag.date_range` 
(https://github.com/apache/airflow/blob/1.10.10rc3/airflow/www_rbac/views.py#L1647)
 function returns taskinstances with 1 day interval instead of 5 minutes 
interval.
   
   Looking further... The root cause of that desynchronization between the 
properties is still unclear to me.

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


With regards,
Apache Git Services

Reply via email to