microsoft / microsoft/aspire

Should be able to cancel a `Waiting` resource's startup

Open
#14,813 2 comments 0 reactions 0 assignees View on GitHub
area-app-model area-dashboard
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

If a resource is in the `Waiting state, I should be able to cancel the resource start to stop it form running once it's dependencies are avaialble. Take the `blockee` resoruce below
```
var blocker = builder.AddExecutable("blocker", "pwsh", ".")
.WithExplicitStart();
var blockee = builder.AddExecutable("blockee", "pwsh", ".")
.WaitFor(blocker);
```

### Describe the solution you'd like

The `Stop` command should be available, and would cancel the wait and abort the process from starting up any further.

Image

### Additional context

Some relation to to #14812

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.