Skip to content

support for Windows multithreading - #76

Merged
arcangelo7 merged 4 commits into
opencitations:masterfrom
krzywonos:master
Sep 10, 2026
Merged

support for Windows multithreading#76
arcangelo7 merged 4 commits into
opencitations:masterfrom
krzywonos:master

Conversation

@krzywonos

Copy link
Copy Markdown

No description provided.

@arcangelo7

arcangelo7 commented Sep 9, 2026

Copy link
Copy Markdown
Member

@krzywonos according to the tests there seem to be issues. Can you check them? If you want, you can ignore ruff and pyright, but at least the tests need to pass.

Comment thread oc_meta/lib/rdf_patch.py
from oc_meta.run.meta.generate_csv import load_json_from_file

mp_method = "spawn" if os.name == "nt" else "forkserver"
mp_method = multiprocessing.get_context("forkserver") if os.name != "nt" else multiprocessing.get_context("spawn")

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

yeah this was the issue causing tests to fail, I didn't notice that there's multiprocessing.get_context() outside of the ProcessPoolExecutor instead of inside like everywhere else

@krzywonos

Copy link
Copy Markdown
Author

those 16 tests in each coverage were failing because of the issue in the comment above, should be fine now

@arcangelo7
arcangelo7 merged commit d8f41e2 into opencitations:master Sep 10, 2026
7 checks passed
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.

2 participants