Skip to content

Commit 8bba93b

Browse files
authored
Fix: Increase ttl for the cache snapshot records fetched from state sync (#2081)
1 parent 816d08b commit 8bba93b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmesh/core/state_sync/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CachingStateSync(DelegatingStateSync):
2929
ttl: The number of seconds a snapshot should be cached.
3030
"""
3131

32-
def __init__(self, state_sync: StateSync, ttl: int = 30):
32+
def __init__(self, state_sync: StateSync, ttl: int = 120):
3333
super().__init__(state_sync)
3434
# The cache can contain a snapshot or False or None.
3535
# False means that the snapshot does not exist in the state sync but has been requested before

0 commit comments

Comments
 (0)