Skip to content

Add a dedicated error subtype for halted tasks #1147

Description

@dcolascione

Effection currently appears to surface a halted task as a plain Error("halted").

That makes it hard for integrations to distinguish cooperative halt/cancellation from an actual task failure. Right now the only reliable check is string-matching on "halted", which is brittle.

It would be useful to expose a dedicated subtype for halted tasks, for example HaltedError or CancelledError, so callers can handle task halt as a first-class outcome.

Related: #977, #662.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions