From 3a3f70df7715064a17bdc4e10452e33c3f7d54c3 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 16 May 2025 10:04:25 +0300 Subject: Update README, docstrings, add ruff to dev dependencies --- femtoqueue.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'femtoqueue.py') diff --git a/femtoqueue.py b/femtoqueue.py index 0badb1d..eb65684 100644 --- a/femtoqueue.py +++ b/femtoqueue.py @@ -39,8 +39,9 @@ class FemtoQueue: timeout_stale_ms : int, default 30_000 Time in milliseconds after which clients can release in-progress tasks back to pending. sync_after_write : bool, default False - Run fsync() after writes to ensure data is synced to disk. Useful if you're worried about sudden power loss. - Setting this on will slow down writes. Not necessary on certain file systems, such as ZFS. + Run fsync() after writes to ensure data is synced to disk. Useful if you're worried about sudden power loss, + but note that integrity checks will discard invalid writes even when sync_after_write is off. + Setting sync_after_write on will slow down writes. Not necessary on certain file systems, such as ZFS. """ assert node_id not in self.RESERVED_NAMES self.node_id = node_id -- cgit v1.3