Skip to content

Document thread safety for stateful hook implementation constrain in multi-run use cases #5656

Description

@ankatiyar

Description

The _hook_manager (PluginManager) is shared between runs in the KedroServiceSession and not reset between runs. Hooks that accumulate per-run state (e.g. metrics collectors, timing accumulators) will bleed state across runs in the serving scenario. This is a latent bug depending on which hooks users register.

Add documentation for this limitation.

Context

Follow up #5535
Additional context #5535 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Task.

    Projects

    Status
    No status
    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions