RikHeijdens commented on issue #14384:
URL: https://github.com/apache/airflow/issues/14384#issuecomment-784559397


   I got a little bit further with finding the root cause of why `start_date` 
may be null: when one transitions the state of the DagRun from `failed` to 
`running` using the form that appears at 
`http://<airflow_host>/dagrun/edit/<dag_id>`, then that form will cause the 
`start_date` for the DagRun to be cleared.
   
   For reasons still unclear to me, the scheduler then decides it is necessary 
to transition the DagRun into a `failed` state (even though there may be tasks 
that haven't ran) and this subsequently causes the TypeError to be raised in 
`_emit_duration_stats_for_finished_state()`.


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