Skip to content

shutdown() doesn't clear hooks or evaluation context #1926

@toddbaert

Description

@toddbaert

The spec (requirement 1.6.2) says shutdown MUST reset all API state, removing hooks, event handlers, and providers. There's also a pending clarification to explicitly include evaluation context and transaction context propagators (open-feature/spec#375).

Right now, OpenFeatureAPI.shutdown() resets providers and event handlers, but leaves apiHooks, evaluationContext, and the transaction context propagator intact. Those should be cleared too.

Found this while doing a cross-SDK audit for Python 1.0 readiness.

Metadata

Metadata

Assignees

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