Skip to content

Deprecate asynchronous SchedulerPlugin.{add|remove}_worker hooks #8487

Open
@hendrikmakait

Description

@hendrikmakait

Allowing synchronous and asynchronous SchedulerPlugin.{add|remove}_worker hooks makes it harder to reason about their execution order (related: #8486). I'm unaware of asynchronous hooks used in practice, so I propose deprecating these. Should there be any legitimate use cases, we can introduce an asynchronous after_{add|remove}_worker hook that would allow strict ordering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprecationSomething is being removed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions