potiuk commented on PR #29493:
URL: https://github.com/apache/airflow/pull/29493#issuecomment-1427081269

   I am also not even sure if the root cause in this case was related to MyPy 
upgrade actually - it looked like it could be (because that was around the time 
when we upgraded), but I cannot be 100% sure 🤷 . It could also be because - for 
example some typeshed changed or mypy information for our dependencies (and 
some stored information in cache could be wrong and "missed" by MyPy (and that 
one would be next to impossible to know where such error gets triggered). 
   
   So we do not really have a clear "trigger" for cleaning the cache that we 
are sure of.  We could potentially catch the right exception and clean it up, 
but this kind of error might result in an exception that we won't be able to 
detect as "invalid cache" being the root cause.
   
   Best we can do (and I did) is revert to human-in-the-loop and in case we see 
an error tell the human "look - if you see strange errors, maybe this one will 
help".


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