microsoft / microsoft/aspire

Add new `ResourceStartedEvent`

Open
#11,353 1 comment 1 reaction 1 assignee Assigned to @Copilot View on GitHub
area-app-model
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

Add new `ResourceStartedEvent` that's fired after a resource has started, but before any health checks have run. Currently there's the `BeforeResourceStartedEvent` and `ResourceReadyEvent`, but there can be a fairly long gap between these as the first is fired before the resource is started (e.g. before the executable or container is started) and the second is fired only after all health checks are healthy.

For the dev tunnels integration this means the port resources can take a while to change to "Running" after the tunnel resource has, as the health checks that contact the dev tunnels service have to be run and return successfully before the port status can be updated. If there were an event fired right after a resource transitioned to the "Running" state then the port status could be updated much earlier.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.