-
Notifications
You must be signed in to change notification settings - Fork 4
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
DM-41832: Use spawn as start method, deprecate fork option #274
Conversation
Fork became unusable, switching default start method to spawn. Forkserver option is still available, fork option is kept in CLI for compatibility but we issue a warning and switch to spawn if fork is given.
34aa884
to
15c9426
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #274 +/- ##
==========================================
- Coverage 87.21% 87.14% -0.07%
==========================================
Files 49 49
Lines 4419 4427 +8
Branches 762 764 +2
==========================================
+ Hits 3854 3858 +4
- Misses 407 413 +6
+ Partials 158 156 -2 ☔ View full report in Codecov by Sentry. |
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.
Looks good. I'm happy with --start-method fork
not breaking for now. I've made suggested changes to some of the text since deprecated implies to me that you can still use it for now but that's not what we mean.
@@ -393,11 +395,9 @@ def __init__( | |||
self.executionGraphFixup = executionGraphFixup | |||
self.report: Report | None = None | |||
|
|||
# We set default start method as spawn for MacOS and fork for Linux; | |||
# None for all other platforms to use multiprocessing default. |
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.
Is fork the multiprocessing default then?
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.
Fork is default for Linux, spawn is default for MacOS and Windows.
Co-authored-by: Tim Jenness <[email protected]>
Fork became unusable, switching default start method to spawn. Forkserver
option is still available, fork option is kept in CLI for compatibility
but we issue a warning and switch to spawn if fork is given.
Checklist
doc/changes