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

Skip data parsing when squeue times out #142

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

jordap
Copy link
Collaborator

@jordap jordap commented Jan 8, 2025

The collector crashes when squeue times out since the runShellCommand with the squeue query returns None.

This PR ensures squeue isn't timing out before parsing the results by checking data is not None.

Not tested in production.

Signed-off-by: Jordà Polo <jorda.polo@amd.com>
@koomie koomie added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants