-
Notifications
You must be signed in to change notification settings - Fork 107
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
Questions regarding the dynamic-node. #618
Comments
But I would recommend focusing on a single dataflow for now.
|
Let's discuss the first issue. When I run the code below, I input a task in the terminal, but the task is not sent to the dataflow, and the dynamic node does not terminate. I'm not sure if there's an issue with my code. import json
from dora import Node
import pyarrow as pa
node = Node("reasoner_task_input")
event = node.next()
task_data = input('Please enter your task: ')
node.send_output('reasoner_task', pa.array([json.dumps(task_data)]), event["metadata"])
while True:
event = node.next()
if event["type"] == "INPUT":
if event["id"] == "reasoner_log":
print('----------- :', event["value"]) |
Could you share |
None of the |
ok could you run: dora destroy
dora up |
Below is the content of my dataflow YAML file: nodes:
- id: reasoner_task_input
path: dynamic
inputs:
direction: dora/timer/secs/1
reasoner_log: reasoner_output/reasoner_output
outputs:
- reasoner_task
- id: reasoner_agent
operator:
python: ./scripts/reasoner_agent.py
inputs:
reasoner_task: reasoner_task_input/reasoner_task
outputs:
- reasoner_result
- id: reasoner_output
operator:
python: ./scripts/reasoner_output.py
inputs:
reasoner_result: reasoner_agent/reasoner_result
outputs:
- reasoner_output |
翻译: This is the received content of
|
So is this the result you were expecting? I have opened: #620 to make it simpler for people to send data from the terminal and print the data that is received. |
This is the result I was looking for, thank you! However, I couldn't find the examples/terminal-dataflow example. Could you also tell me how to install the terminal-print command? |
Make sure to use the branch git checkout terminal-example So when you use: dora build dataflow.yml It should install |
This has been solved by the addition of the echo example, the terminal-input and terminal-print in the node-hub |
Is your feature request related to a problem? Please describe.
Regarding the dynamic node, we currently have the following issues:
dynamic-node
to retrieve the output of a specific node, then usepython dynamic.py
to display the received data in theterminal
.dataflow
processes and thedynamic
node names are the same across these processes, why can't we start the samedynamic
node to send information to multipledataflow
processes?The text was updated successfully, but these errors were encountered: