Skip to content

Making AstroidManager interactable from multiple processes #2048

Open

Description

I know, another issue about multiprocessing...

I was reading up on multiprocessing and sharing caches among those processes and it seems as if we need something like multiprocessing.SyncManager to allow accessing a cache between multiple processes.
I think it would be worthwhile to explore whether we can make AstroidManager a SyncManager that needs to be instantiated by whoever needs it rather than having it be a singleton.

However, before spending considerable time exploring this I want to see if others have had tries at this or other ideas about allowing pylint and astroid to "parse modules and nodes in multiple process while keeping a cache between those processes".

Taggin @jacobtylerwalls in particular as they have tinkered with this as well.

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions