Skip to content

Conversation

vkantchev
Copy link
Contributor

No description provided.

@vkantchev vkantchev requested a review from giovtorres February 14, 2020 18:20
Copy link
Member

@giovtorres giovtorres left a 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.

@vkantchev vkantchev changed the title Return job steps from slurmdb_jobs.get() #167 Return job steps from slurmdb_jobs.get #167 Feb 18, 2020
# Resolved conflicts:
#	examples/listdb_jobs.py
@vkantchev vkantchev requested a review from giovtorres February 19, 2020 23:24
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), '')
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@giovtorres giovtorres left a 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.

@giovtorres giovtorres merged commit 0d5e23a into PySlurm:master Feb 20, 2020
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

Successfully merging this pull request may close these issues.

2 participants