Skip to content
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

In Python 3.7 and later, use os.register_at_fork to reset logging state post-fork() #441

Open
itamarst opened this issue Dec 3, 2019 · 2 comments

Comments

@itamarst
Copy link
Owner

itamarst commented Dec 3, 2019

multiprocessiing default mode on POSIX will result in Eliot logging configuration being inherited by children. This is not ideal, since it's inconsistent across multiprocessing modes.

os.register_at_fork would allow fixing this. However, this is not strictly backwards compatible...

@Tushar-Sharma31
Copy link

how can we change default spawn to fork in windows...

@itamarst
Copy link
Owner Author

Windows does not support fork at all, it's a Unix-specific concept. I strongly recommend never using fork mode even when it is supported: https://pythonspeed.com/articles/python-multiprocessing/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants