We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c2dca9 commit 099d76bCopy full SHA for 099d76b
supervisor/utils/blockbuster.py
@@ -1,14 +1,14 @@
1
"""Activate and deactivate blockbuster for finding blocking I/O."""
2
3
-from functools import lru_cache
+from functools import cache
4
import logging
5
6
from blockbuster import BlockBuster
7
8
_LOGGER: logging.Logger = logging.getLogger(__name__)
9
10
11
-@lru_cache(maxsize=1)
+@cache
12
def _get_blockbuster() -> BlockBuster:
13
"""Get blockbuster instance."""
14
return BlockBuster()
0 commit comments