Skip to content

Commit

Permalink
fix rm_record bug using new write_lock
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Mar 14, 2024
1 parent a46ed1e commit fac8a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipestat/backends/file_backend/filebackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ def remove_record(
try:
_LOGGER.info(f"Removing '{record_identifier}' record")
del self._data[self.pipeline_name][self.pipeline_type][record_identifier]
with self._data as locked_data:
locked_data.write()
with write_lock(self._data) as data_locked:
data_locked.write()
return True
except:
_LOGGER.warning(
Expand Down

0 comments on commit fac8a6b

Please sign in to comment.