Open woshiyyya opened 4 months ago
Note that the first issue about all readers needing to be on the same node will be fixed soon (tracked in #46269).
The second issue can be resolved by passing the two arguments to execute()
directly rather than via a list:
print(ray.get(output_dag.execute(0, 1)))
The second issue can be resolved by passing the two arguments to
execute()
directly rather than via a list:print(ray.get(output_dag.execute(0, 1)))
Thanks for you reply! But this is difficult for when there are lots of args (i.e. 100 args), right? So I think it's better that we can pass a list or even a nested list(for different DAG mabybe), right? I think my PR can solve this? Do you have other ideas?
Would it be possible to pass a tuple of arguments? You can expand a tuple into an argument list like this:
t = (0, 1, 2, ...)
dag.execute(*t)
What happened + What you expected to happen
The
.execute()
api does support list as input if we don't compile the DAG, but raised the following error if we compile itError Message:
If I force all DAG actors on the same node, it raises another error:
Versions / Dependencies
nightly
Reproduction script
Issue Severity
High: It blocks me from completing my task.