Skip to content

Commit 3da759d

Browse files
introduce ttl cache
1 parent 2ef80ca commit 3da759d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cads_broker/dispatcher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def number_of_workers(self):
159159
return number_of_workers
160160

161161
@cachetools.cachedmethod( # type: ignore
162-
cache=operator.attrgetter("cache"),
162+
cache=cache,
163163
)
164164
def sync_database(self, session: sa.orm.Session) -> None:
165165
"""Sync the database with the current status of the dask tasks.

0 commit comments

Comments
 (0)