AfterResourcesCreatedEvent
is inconsistently fired
#7009
Labels
untriaged
New issue has not been triaged
AfterResourcesCreatedEvent
is inconsistently fired
#7009
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: