You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run this whilst docker is stopped, no resoruces are stated but the AfterResourcesCreatedEvent does get fired.
However if you comment out the //two.WaitFor(one); line above and run the app (whilst docker is still not running), then the AfterResourcesCreatedEvent does not get fired.
The issue here seems to be that when WaitFor is used, the AfterResourcesCreatedEvent is blocked until all health checks become healthy. However the runtime availability is handled by a different flow which does not block AfterResourcesCreatedEvent.
From my point of view, both the above are essentially the same in both cases the containers are waiting on something else before they can start, and so I'd expect either both cases to raise AfterResourcesCreatedEvent or I'd neither to raise the event.
The text was updated successfully, but these errors were encountered:
I'm finding the logic for when the
AfterResourcesCreatedEvent
is fired to be very confusing. Take the following code for example:Run this whilst docker is stopped, no resoruces are stated but the
AfterResourcesCreatedEvent
does get fired.However if you comment out the
//two.WaitFor(one);
line above and run the app (whilst docker is still not running), then theAfterResourcesCreatedEvent
does not get fired.The issue here seems to be that when
WaitFor
is used, theAfterResourcesCreatedEvent
is blocked until all health checks become healthy. However the runtime availability is handled by a different flow which does not blockAfterResourcesCreatedEvent
.From my point of view, both the above are essentially the same in both cases the containers are waiting on something else before they can start, and so I'd expect either both cases to raise
AfterResourcesCreatedEvent
or I'd neither to raise the event.The text was updated successfully, but these errors were encountered: