alteryx / alteryx/ayx-developer-sdk

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

Aperta
#33 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
14
Fork
0
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.