From 6d930fdebd6be0f41da38c460a51f8cfca3f0279 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Thu, 23 May 2024 10:47:03 +0200 Subject: [PATCH] Include stack when reporting delete error --- lib/galaxy/objectstore/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/objectstore/__init__.py b/lib/galaxy/objectstore/__init__.py index 5d7596be6036..6b25071ccad3 100644 --- a/lib/galaxy/objectstore/__init__.py +++ b/lib/galaxy/objectstore/__init__.py @@ -849,7 +849,9 @@ def _delete(self, obj, entire_dir=False, **kwargs): # Absolutely possible that a delete request races, but that's "fine". return True except OSError as ex: - log.critical(f"{self.__get_filename(obj, **kwargs)} delete error {ex}") + # Likely a race condition in which we delete the job working directory + # and another process writes files into that directory. + log.critical(f"{self.__get_filename(obj, **kwargs)} delete error {ex}", exc_info=True) return False def _get_data(self, obj, start=0, count=-1, **kwargs):