Waiting for health status of a stopped resource #7186
Labels
area-app-model
Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Milestone
Is there an existing issue for this?
Describe the bug
WaitUntilHealthyAsync
will stop waiting, or not attempt to wait, if the resource is in an exited/finished state:aspire/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs
Lines 134 to 154 in 9e5deba
It makes sense to stop waiting if resources can't be started again. I think this was written before we had start/restart commands.
Expected Behavior
Should
WaitUntilHealthyAsync
wait for a healthy status and ignore if the resource stops?Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: