Skip to content

New Feature Idea: Allow raising AbortHandlingException to abort current handler & skip any remaining handlers for this event, mark it as completed immediately #7

@pirate

Description

@pirate
class IgnoreEventException(Exception):
    pass


def some_handler(event: BaseEvent[Any]):
    raise IgnoreEventException()


event_bus.on('SomeEventToIgnore', some_handler)


If a handler raises `IgnoreEventException` it should be able to stop the execution of the other handlers after it when `parallel_handlers=False`.

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