alteryx / alteryx/ayx-developer-sdk

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

未关闭
#33 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
没有语言数据
星标
14
派生
0
PR 合并指标
PR 指标待抓取

描述

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.

```python
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](https://github.com/alteryx/ayx-developer-sdk/assets/7277535/e92770fe-036a-4206-b313-eb941f41cc71)

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。