-
Notifications
You must be signed in to change notification settings - Fork 126
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
Implement MultiProcessingStage
#1878
base: branch-24.10
Are you sure you want to change the base?
Implement MultiProcessingStage
#1878
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very close. Need a few tweaks to how stop/join works. Also, can you add more type annotations to this PR? For any public function, type annotations are helpful.
python/morpheus/morpheus/stages/general/multi_processing_stage.py
Outdated
Show resolved
Hide resolved
python/morpheus/morpheus/stages/general/multi_processing_stage.py
Outdated
Show resolved
Hide resolved
# The pool should be shutdown immediately after calling terminate() without waiting for the tasks to complete | ||
pool.terminate() | ||
pool.join() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are you verifying that the tasks have been shutdown before they are run?
Description
Closes #1850
By Submitting this PR I confirm: