Skip to content
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

WaitFor circular reference #8076

Open
1 task done
JamesNK opened this issue Mar 14, 2025 · 0 comments
Open
1 task done

WaitFor circular reference #8076

JamesNK opened this issue Mar 14, 2025 · 0 comments
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Comments

@JamesNK
Copy link
Member

JamesNK commented Mar 14, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

WaitFor prevents a resource waiting on itself. But it doesn't prevent a circular reference of resources waiting on each other. The resources hang in a waiting state.

You can click the Start action on one of the resources in a loop to start a resource, and then other resources are able to startup, but it's still an odd thing to configure. If you wanted that behavior then the right way to do it is have resources waiting on a resource with explicit start configured.

Expected Behavior

Throw error on startup. This is already done on detection of a circular references of parent resource relationships.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version info

No response

Anything else?

No response

@JamesNK JamesNK added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

No branches or pull requests

1 participant