-
Notifications
You must be signed in to change notification settings - Fork 33
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
[BUG] no error when component links to itself #505
Comments
@ricochet to play devils advocate, is there a legitimate use case for recursion with the same component? I tend to agree that this is probably always invalid (especially if not running with a certain scale, since it would just timeout) but figured before we make it an error it would be good to consider if this is a real use case |
I couldn't come up with a reason this would be valid, especially not where the solution had to involve recursion over the same component (vs making another component for fan-out-fan-in even if they have the same logic, both components serve as logically different nodes in the DAG). If we're looking to replicate linking but distributed, then note that circular linking is disallowed in the component model. |
Yeah, I think that if it's something that's not allowed with just regular composition, then it's not something we want to encourage. Maybe there's a real use case here, but we can address that when it comes up |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this has been closed too eagerly, please feel free to tag a maintainer so we can keep working on the issue. Thank you for contributing to wasmCloud! |
When the source and target of a link are the same, the application status should surface an error. This should be considered an invalid link.
The text was updated successfully, but these errors were encountered: