Fix RLock pickling issue in BaseFileKnowledgeSource

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-05-06 00:15:45 +00:00
parent 63eccf5e30
commit 72df165b07

View File

@@ -30,7 +30,7 @@ class BaseFileKnowledgeSource(BaseKnowledgeSource, ABC):
"""
_logger: Logger = Logger(verbose=True)
_lock: RLock = RLock() # Thread-safe lock for file operations
_lock = RLock() # Thread-safe lock for file operations
file_path: Optional[Union[Path, List[Path], str, List[str]]] = Field(
default=None,