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

Adding a guard that prevents the tutorial from being executed in every subprocess on windows #729

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

julian-risch
Copy link
Member

The tutorials are now encapsulated in methods and it is checked that the code is executed only by the main process but none of the subprocesses when using multiprocessing. This change only affects Windows users.

On Windows, this check is necessary to prevent the tutorial code from being executed in every subprocess when using multiprocessing. Without the check, every subprocess tries to spawn a new elasticsearch instance, write to the same log file, etc., which leads to "Permission denied" errors or "failed to obtain node locks" exceptions as reported in the following issue

closes #709

… every subprocess when using multiprocessing on windows
@tholor
Copy link
Member

tholor commented Jan 12, 2021

What about the tutorials in jupyter notebook format? Do we have a similar problem there or is it only concerning the .py scripts?

@julian-risch
Copy link
Member Author

👍 It is only concerning the scripts and not the notebooks.

Copy link
Contributor

@brandenchan brandenchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@julian-risch julian-risch merged commit 3331608 into master Jan 13, 2021
@julian-risch julian-risch deleted the multiprocessing_on_windows branch January 13, 2021 17:17
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

Successfully merging this pull request may close these issues.

fetch_archive_from_http: Permission Denied on Windows
3 participants