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

   This is a fix for the  [issue 
#53135](https://github.com/apache/airflow/issues/53135)
   
   Added an existence check for `mark_success_url` in the default SMTP html 
template.
   The `TaskInstance` class properly defines a `mark_success_url` property, 
while the `RuntimeTaskInstance` class used during task execution does not. This 
results in an `UndefinedError` when the email template tries to access 
`ti.mark_success_url` on a `RuntimeTaskInstance` object.
   
   This change makes sure:
   - The link is displayed when using `TaskInstance` objects (which have the 
property)
   - No error occurs when using `RuntimeTaskInstance` objects (which don't have 
the property)
   


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