feat: Activate blockbuster Lock.aquire detection (#5157)

Activate blockbuster Lock.aquire detection

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Christophe Bornet 2024-12-09 13:59:50 +01:00 committed by GitHub
commit d58530c358
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,10 @@ def blockbuster(request):
"io.TextIOWrapper.read",
]:
bb.functions[func].can_block_functions.append(("importlib_metadata/__init__.py", {"metadata"}))
bb.functions["threading.Lock.acquire"].deactivate()
for func in bb.functions:
if func.startswith("sqlite3."):
bb.functions[func].deactivate()
yield bb