Skip to content

Should be able to cancel a Waiting resource's startup #14813

@afscrome

Description

@afscrome

Is there an existing issue for this?

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions