-
Notifications
You must be signed in to change notification settings - Fork 124
Return job steps from slurmdb_jobs.get #167 #168
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @vkantchev . Thank you for this contribution! It looks great. Just a couple comments below. Also, would you be able to write a test for this change and or perhaps some screenshots of it working? Also, you'll need to rebase.
# Resolved conflicts: # examples/listdb_jobs.py
JOBS_info[u'start'] = job.start | ||
JOBS_info[u'state'] = job.state | ||
JOBS_info[u'state_str'] = slurm.slurm_job_state_string(job.state) | ||
JOBS_info[u'state_str'] = slurm.stringOrNone(slurm.slurm_job_state_string(job.state), '') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does slurm_job_state_string
ever return null
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It returns byte array, e.g. b'123' which breaks things like json.dumps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for addressing feedback.
No description provided.