node-event-storage icon indicating copy to clipboard operation
node-event-storage copied to clipboard

Use proper-lockfile optionally for auto-recovery from crashed processes

Open albe opened this issue 4 years ago • 0 comments

Following https://github.com/albe/node-event-storage/pull/155, which provides a manual process to recover from a crashed write process, a way to make this (semi-)automatic would be to use proper-lockfile as the locking mechanism and do the checkTornWrites() when a stale lock is reclaimed. The library is still missing a callback for that case though, so this would need to be manually implemented.

albe avatar May 16 '21 15:05 albe