fat-catTW commented on code in PR #76381:
URL: https://github.com/apache/airflow/pull/76381#discussion_r4657036475


##########
providers/common/ai/src/airflow/providers/common/ai/durable/storage.py:
##########
@@ -151,8 +167,8 @@ def delete_steps(self, keys: Iterable[str]) -> None:
                 self._write(json.dumps(cache))
             else:
                 self._get_path().unlink()
-                self._cache = None
+                self._cache = {}

Review Comment:
   Thanks for the review.
   `_load_cache()` now runs inside the cleanup `try` block, so a corrupt 
journal only logs the cleanup warning instead of raising. Added a regression 
test for this path.



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