antonlin1 opened a new pull request, #56542:
URL: https://github.com/apache/airflow/pull/56542

   For dag that is timed out, with only skipped tasks, following error is thrown
   ```
   Failed to emit OpenLineage DAG failed event: 
    Traceback (most recent call last):
     File 
"/usr/local/lib/python3.12/site-packages/airflow/providers/openlineage/plugins/adapter.py",
 line 505, in dag_failed
       **get_airflow_state_run_facet(dag_id, run_id, task_ids, dag_run_state),
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/usr/local/lib/python3.12/site-packages/airflow/providers/openlineage/utils/utils.py",
 line 746, in get_airflow_state_run_facet
       else (ti.end_date - ti.start_date).total_seconds()
             ~~~~~~~~~~~~^~~~~~~~~~~~~~~
   TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
   ```
   
   This PR fixes said issue


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

To unsubscribe, e-mail: [email protected]

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

Reply via email to