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

Don't run code at init time! #220

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Don't run code at init time! #220

merged 2 commits into from
Aug 20, 2024

Conversation

jeremyfowers
Copy link
Collaborator

@jeremyfowers jeremyfowers commented Aug 20, 2024

Closes #219

Fixes a bug where code was running at module initalization time, which could cause problems when using multi-processing.

The fix is simple: run the code at runtime, when needed, by placing it inside of a function and calling that function on-demand.

Copy link
Collaborator

@danielholanda danielholanda left a comment

Choose a reason for hiding this comment

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

Please make sure to increment the version number, as users might have to use turnkeyml>=THIS_VERSION on their setup.py

Signed-off-by: Jeremy Fowers <80718789+jeremyfowers@users.noreply.github.com>
@jeremyfowers jeremyfowers enabled auto-merge (squash) August 20, 2024 16:51
@jeremyfowers jeremyfowers merged commit fa64db3 into main Aug 20, 2024
6 checks passed
@jeremyfowers jeremyfowers deleted the bug/imports branch August 20, 2024 17:01
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.

TurnkeyML Tools seem to be incompatible with python multiprocessing
2 participants