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

print() statements causing my custom tool to hang #33

Open
pillowfication opened this issue Sep 7, 2023 · 0 comments
Open

print() statements causing my custom tool to hang #33

pillowfication opened this issue Sep 7, 2023 · 0 comments

Comments

@pillowfication
Copy link

I'm not sure the cause of it, but I've noticed my custom tool will hang at seemingly inconsistent times, and it seems to be because of print() statements.

class MyTool(PluginV2):
    def __init__(self, provider: AMPProviderV2):
        self.name = "My Tool"
        self.provider = provider

        for i in range(0, 1000):
            text = f"{i} - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
            print(text)
            self.provider.io.info(text)

With this constructor, my tool hangs after the 63rd print(), impacting the entire workflow.

image

But commenting out the print() statement will continue without issues. What's the cause of this issue?

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

No branches or pull requests

1 participant