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

Fix pymongo warning bootstrax #1142

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cfuselli
Copy link
Member

@cfuselli cfuselli commented Mar 6, 2023

Fix warnings from pymongo in bootstrax

The following warning was showing up so much that reading the logs of bootstrax was becoming impossible.

/home/xedaq/miniconda/envs/py38/lib/python3.8/site-packages/pymongo/topology.py:164: UserWarning: MongoClient opened before fork. Create MongoClient only after forking. See PyMongo's documentation for details: https://pymongo.readthedocs.io/en/stable/faq.html#is-pymongo-fork-safe

Following this stackoverflow thread , and setting the start as spawn, makes the error disappear and the process more safe.

@JoranAngevaare
Copy link
Contributor

Neat! Did you check that the performance is the same?

@WenzDaniel
Copy link
Collaborator

@cfuselli I think this PR is good to be merged. Can you solve the conflicts?

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.

3 participants