Skip to content

[Documentation] When is it safe to have two processes spawn a LeanREPLConfig concurrently? #37

@jonathan-laurent

Description

@jonathan-laurent

When using LeanInteract with multiprocessing, the documentation clearly recommends to create a single LeanREPLConfig in the main process and then send it to worker processes that each spawn LeanServer instances from it. However, the question remains: is it unsafe to create two LeanREPLConfig instances in separate processes concurrently, and if so, are there specific cases where it is safe?

Indeed, there are clear use cases for creating configurations concurrently. For examples, one or several users might run several experiments concurrently, each via a Python script that uses multiprocessing. Can such cases present a risk? I imagine there is no risk when the configurations load projects from disjoint repositories. What if the same repository is used though? What if auto_build is set to True/False?

Answering such questions in the documentation would be valuable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions