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

Add integration test for multiprocessing usage #2046

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

meatballhat
Copy link
Contributor

in which the setup spawns a child process that accepts a multiprocessing Connection and Lock which are used in each prediction.

The intent of this test is to ensure Cog plays nicely with any predictor that uses these features of multiprocessing, especially in combination with a Path output, since these have been common elements of known failures.

@meatballhat meatballhat requested a review from a team November 6, 2024 02:54
@meatballhat meatballhat changed the title Add integration teet for multiprocessing usage Add integration test for multiprocessing usage Nov 6, 2024
in which the setup spawns a child process that accepts a multiprocessing
Connection and Lock which are used in each prediction. The intent of
this test is to ensure Cog plays nicely with any predictor that uses
these features of multiprocessing, especially in combination with a Path
output, since these have been common elements of known failures.
print(f"Getting ready for some serious ponginggg ({i+1}%)")
time.sleep(0.001 + (0.001 * (i + 1)))

print("ITS PONGIN TIME")
Copy link
Member

Choose a reason for hiding this comment

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

😁

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