You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "antonlin1 (via GitHub)" <gi...@apache.org> on 2025/10/10 10:33:20 UTC

[PR] Fix openlineage dag state event emit on timed out dag [airflow]

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix openlineage dag state event emit on timed out dag [airflow]

Posted by "mobuchowski (via GitHub)" <gi...@apache.org>.
mobuchowski merged PR #56542:
URL: https://github.com/apache/airflow/pull/56542


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix openlineage dag state event emit on timed out dag [airflow]

Posted by "antonlin1 (via GitHub)" <gi...@apache.org>.
antonlin1 commented on PR #56542:
URL: https://github.com/apache/airflow/pull/56542#issuecomment-3389341166

   /merge


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org