Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tehrengruber committed Dec 2, 2024
1 parent 9cde165 commit f567a12
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/gt4py/next/program_processors/runners/gtfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ class FileCache(diskcache.Cache):
This class extends `diskcache.Cache` to ensure the cache is properly
- opened when accessed by multiple processes using a file lock. This guards the creating of the
cache object, which has been reported to cause `sqlite3.OperationalError: database is locked`
errors and slow startup times when multiple processes access the cache concurrently. While
this issue occurred frequently and was observed to be fixed on distributed file systems, the
lock does not guarantee correct behavior in particular for the accesses to the cache (beyond
opening. See #1745 for more details.
errors and slow startup times when multiple processes access the cache concurrently. While this
issue occurred frequently and was observed to be fixed on distributed file systems, the lock
does not guarantee correct behavior in particular for accesses to the cache (beyond opening)
since the underlying SQLite database is unreliable when stored on an NFS based file system.
It does however ensure correctness off concurrent cache accesses on a local file system. See
#1745 for more details.
- closed upon deletion, i.e. it ensures that any resources associated with the cache are
properly released when the instance is garbage collected.
"""
Expand Down

0 comments on commit f567a12

Please sign in to comment.