Skip to content

PowerShell: Undocumented Aspire 13.2 changes in eventing mechanics broke WaitFor #1351

@oising

Description

@oising

Describe the bug

See: https://discord.com/channels/1361488941836140614/1488298621693726772/1488323510714765483

TL;DR:

awaiting publishing BeforeResourceReadyEvent is meant to block until any dependencies have transitioning to running for Aspire 13.1 or earlier. This used to work unconditionally. Post Aspire 13.2.x, it won't block unless you publish a Starting state on your resource first.

I reworked the Pool (parent) and Script (child) resources to ensure this new contract is followed.

Regression

13.1

Steps to reproduce

n/a

Expected behavior

Scripts should wait for parent Runspace Pool to Open.

Screenshots

No response

IDE and version

Other

IDE version

No response

Nuget packages


Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions