mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-09-20 10:03:37 +00:00
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Vulnerability Scan / Detect changes (push) Has been cancelled
Vulnerability Scan / pip-audit (push) Has been cancelled
Check Documentation Broken Links / Check broken links (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
* fix(memory): close sqlite connections in kickoff task outputs storage `with sqlite3.connect(...) as conn` only commits or rolls back; it never closes the connection, which then survives in a reference cycle until a cyclic GC pass. Every Crew kept an open handle on latest_kickoff_task_outputs.db, so on Windows the file stayed locked and any later delete, rename or temp-dir cleanup failed with PermissionError (WinError 32). Wrap each connection in contextlib.closing, keeping the existing commit/rollback semantics, and add regression tests. * test(memory): cover rollback and close on a failed write --------- Co-authored-by: Vidit Ostwal <110953813+Vidit-Ostwal@users.noreply.github.com>