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

Feature request: add the ability to set the process priority of a node #129

Open
AlexFernandes-MOVAI opened this issue Jan 8, 2024 · 0 comments
Assignees

Comments

@AlexFernandes-MOVAI
Copy link
Contributor

In

it would be nice to be able to set a higher priority on some critical nodes:

For example using the psutil library, which is a cross-platform library for accessing system details and managing processes:

# Set the process priority using psutil
    try:
        ps_process = psutil.Process(self.proc)
        # Set the priority (you can choose a priority value from psutil)
        ps_process.nice(psutil.HIGH_PRIORITY_CLASS)
    except psutil.NoSuchProcess as e:
        log.error(f"Error setting priority: {e}")
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

2 participants