-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Add option to auto-delete temporary files in LocalCommandLineCodeExecutor #6556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to auto-delete temporary files in LocalCommandLineCodeExecutor #6556
Conversation
python/packages/autogen-ext/src/autogen_ext/code_executors/local/__init__.py
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6556 +/- ##
=======================================
Coverage 79.53% 79.53%
=======================================
Files 225 225
Lines 16630 16642 +12
=======================================
+ Hits 13226 13237 +11
- Misses 3404 3405 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Head branch was pushed to by a user without write access
Why are these changes needed?
The
LocalCommandLineCodeExecutorcreates temporary files for each code execution, which can accumulate over time and clutter the filesystem - especially when a temporary working directory is not used. These changes introduce an option to automatically delete temporary files after execution, helping to prevent file system debris, reduce disk usage, and ensure cleaner runtime environments in long-running or repeated execution scenarios.Related issue number
Closes #4380
Checks