Skip to content

Avoid using mutable class-level variables to prevent cross-request interference #538

Description

@joshdimanteto

The current implementation uses mutable class variables (lists/dicts) to store request-specific state. While this works in a single‑request flow, it becomes unsafe when running multiple workers or handling async/concurrent requests, since all instances share the same class-level data. This can cause data leakage, race conditions, and inconsistent behaviour between requests. We should investigate replacing these with instance-level state or a request-scoped store.

#524 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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