Skip to content

Global variables are not shared with executors when run with multiprocessing #1

Open
@chris-zen

Description

When running it in MacOS, the multiprocessing module doesn't work as it would be expected in Linux, where the executors inherit the global variables from the parent process. But instead they appear as None, which makes the program to crash. A way to avoid the problem is to configure the OncodriveFML class to avoid parallel by setting the self.avoid_parallel = True in the constructor, and then it runs successfully.

The solution will require to eliminate all the global variables that are needed by the executors, and pass them to every executor explicitly as parameters.

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