You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/02/23 22:38:17 UTC

[GitHub] [airflow] RikHeijdens edited a comment on issue #14384: Scheduler ocassionally crashes with a TypeError when updating DagRun state

RikHeijdens edited a comment 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.
   
   If the scheduler then decides it is necessary to transition the DagRun into a `failed` state, which may happen if the TIs have not been cleared (which requires a separate action when using this form), and/or no more tasks can be ran, then 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:
users@infra.apache.org