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

Min Max Avg Idle time calculations missing for SLURM #142

Open
hskarlupka opened this issue Feb 14, 2018 · 0 comments
Open

Min Max Avg Idle time calculations missing for SLURM #142

hskarlupka opened this issue Feb 14, 2018 · 0 comments

Comments

@hskarlupka
Copy link
Contributor

When running pyglidein on SLURM clusters without qstat the metrics function Stacktraces with:

Traceback (most recent call last):
  File "/home/heaths/.local/bin/pyglidein_client", line 11, in <module>
    load_entry_point('pyglidein==1.1.2', 'console_scripts', 'pyglidein_client')()
  File "/home/heaths/.local/lib/python2.7/site-packages/pyglidein/client.py", line 239, in main
    metrics_bundle.update_metrics(metrics.get_mma_idle_time())
  File "/home/heaths/.local/lib/python2.7/site-packages/pyglidein/client_metrics.py", line 117, in get_mma_idle_time
    output = check_output(cmd, shell=False, env=os.environ, stderr=STDOUT)
  File "/usr/lib64/python2.7/subprocess.py", line 568, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Add a SLURM function to the metrics class to handle output from squeue.

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