Skip to content

Conversation

SreevishnuAB
Copy link
Contributor

@SreevishnuAB SreevishnuAB commented Dec 23, 2021

Checks:

  • README.md is maintained
  • Documentation is maintained
  • CHANGELOG.md is updated
  • Tests added

Copy link

@thedomdom thedomdom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it looks good, I just have 2 minor questions.

for job in jobs:
if job["modelName"] == model_name:
return job
else: # pylint: disable=useless-else-on-loop

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it is easier to read the code with the else or why do we need it?

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 works fine without the else. I don't remember why that was added in the first place. Removed. Thanks!

Comment on lines 157 to 158
job_by_name = model_manager_client.read_job_by_model_name(model_name)
assert job_by_name is not None

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure but maybe we can also test the read_job_by_model_name by replacing the lines 146-152 with a call to read_job_by_model_name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would work! Updated.

Copy link

@thedomdom thedomdom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@SreevishnuAB SreevishnuAB merged commit 2c59234 into main Jan 12, 2022
@misch misch deleted the fetch-job-by-model-name branch January 3, 2025 10:02
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