Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add semaphore for high-memory areas #190

Open
choosehappy opened this issue May 28, 2021 · 0 comments
Open

Add semaphore for high-memory areas #190

choosehappy opened this issue May 28, 2021 · 0 comments

Comments

@choosehappy
Copy link
Owner

For example, some modules may operate at a higher magnification limiting parallel processing.

Limiting the # of processes executing within that module would be nice

Seems to be possible by adding a high memory option in the base config, creating a semaphore and then modifying the worker launch similar to like:

            if process_params["high_mem"]:
                with semaphore:
                    process(s, process_params)
            else:
                process(s, process_params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant