diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-05-16 10:04:25 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-05-16 10:06:51 +0300 |
| commit | 3a3f70df7715064a17bdc4e10452e33c3f7d54c3 (patch) | |
| tree | bfe3b912bb6916420cbb30a37df093195b9bb694 /femtoqueue.py | |
| parent | 2ce3a78eb131a306ac0d3e30be89097d8b1213b4 (diff) | |
Update README, docstrings, add ruff to dev dependencies
Diffstat (limited to 'femtoqueue.py')
| -rw-r--r-- | femtoqueue.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
