-
Notifications
You must be signed in to change notification settings - Fork 7
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
Enable support for multi-process pytwin import #103
Conversation
Codecov Report
@@ Coverage Diff @@
## main #103 +/- ##
==========================================
- Coverage 88.75% 88.71% -0.04%
==========================================
Files 11 11
Lines 2320 2312 -8
==========================================
- Hits 2059 2051 -8
Misses 261 261 |
@chrpetre @EDCarman this PR enables multiple python process importing pytwin to run in parallel. Drawback is the pytwin default working directory is no longer cleanup when pytwin is imported. This makes the temp directory can became quite big. User currently has the option to setup an another working directory and we might provide a cleanup_pytwin_default_working_directory helper to clean it up at user request. To be discussed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @lboucin
thanks for the PR. That looks good to me. I just have few questions/comments
- how has the change been tested/validated (e.g. would that make sense to have 1 more unit test ?)
- should we have an option to cleanup the working directory at the end of the process if possible (and we could put the default to True which would remove all the files at the end of process) ? so that we don't accumulate too much files/data
Hello @chrpetre, please find answers below:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @lboucin let's follow up separately for the other topic on how to best deal with the management of data accumulated in temp folders
Make working directory unique to each process
resolves #102