Skip to content

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?

@yuema137 yuema137 self-requested a review February 5, 2025 05:19
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