Skip to content

Commit

Permalink
Merge pull request #57 from neptune-ai/ms/fix-lock-is-not-owned
Browse files Browse the repository at this point in the history
Fix lock is not owned error in error handling block
  • Loading branch information
michalsosn authored Oct 22, 2024
2 parents ed497f5 + 00e5c3b commit f4fc266
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/neptune_scale/core/components/sync_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ def work(self) -> None:
self._last_put_seq_wait.notify_all()
except Exception as e:
self._errors_queue.put(e)
self._last_put_seq_wait.notify_all()
with self._last_put_seq_wait:
self._last_put_seq_wait.notify_all()
self.interrupt()
raise NeptuneSynchronizationStopped() from e

Expand Down

0 comments on commit f4fc266

Please sign in to comment.