-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[core][compiled-graph] Throw an exception when DAGNode is inside any type of container as a DAGNode arg #48302
[core][compiled-graph] Throw an exception when DAGNode is inside any type of container as a DAGNode arg #48302
Conversation
Signed-off-by: kaihsun <[email protected]>
|
||
# UUID that is not changed over copies of this node. | ||
self._stable_uuid = uuid.uuid4().hex | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've decided to move this function below _stable_uuid
so that it won't throw an error when printing self
in the exception in _collect_upstream_nodes
.
actor.echo.bind((inp,)) | ||
assert re.search(self.regex, str(exc_info.value), re.DOTALL) | ||
|
||
def test_dag_node_in_dict(self, ray_start_regular): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it working if dag node is in a different class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a test
This PR is a breaking change for traditional DAG. For example: ray/python/ray/dag/tests/test_function_dag.py Lines 160 to 168 in c7263e4
The test passes a dict of refs to the Should we "Throw an exception when DAGNode is inside any type of container as a DAGNode arg" only when it is a RayCG instead of making a breaking change? |
yeah can we make it ray cg only? |
Signed-off-by: kaihsun <[email protected]>
Signed-off-by: kaihsun <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some minor comments
Signed-off-by: kaihsun <[email protected]>
Signed-off-by: kaihsun <[email protected]>
…type of container as a DAGNode arg (ray-project#48302) Based on ray-project#48045, we have decided to treat a case where a DAGNode is inside any type of container as a DAGNode argument as an error and throw an exception. Signed-off-by: JP-sDEV <[email protected]>
…type of container as a DAGNode arg (ray-project#48302) Based on ray-project#48045, we have decided to treat a case where a DAGNode is inside any type of container as a DAGNode argument as an error and throw an exception. Signed-off-by: mohitjain2504 <[email protected]>
Why are these changes needed?
Based on #48045, we have decided to treat a case where a
DAGNode
is inside any type of container as aDAGNode
argument as an error and throw an exception.We verify whether there is a case in the constructor of the DAGNode.
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.