Alteryx IO Discussions

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.

`print()` statements causing my custom tool to hang

9 - Comet

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): = "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."



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




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