Skip to content

Commit

Permalink
Include stack when reporting delete error
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed May 23, 2024
1 parent eef864a commit 6d930fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/galaxy/objectstore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6d930fd

Please sign in to comment.