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

[Runtimes] Divide run() method to use multiple methods #1785

Merged

Conversation

Tankilevitch
Copy link
Contributor

No description provided.

Copy link
Contributor

@Hedingber Hedingber left a comment

Choose a reason for hiding this comment

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

Great initiative!
Added some naming recommendations, it's just IMO, feel free to think differently

mlrun/runtimes/base.py Outdated Show resolved Hide resolved
mlrun/runtimes/base.py Outdated Show resolved Hide resolved
spec = runspec.spec
if spec.secret_sources:
Copy link
Contributor

Choose a reason for hiding this comment

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

In the line above there is spec = runspec.spec which (IMO) just makes reading harder cause you're seeing spec but don't know a spec of what it is, should simply remove that and use run.spec everywhere
Same is true for meta that is defined below (let's just use run.metadata

mlrun/runtimes/base.py Outdated Show resolved Hide resolved
@Hedingber Hedingber changed the title [Runtime] Divide run method to use multiple methods [Runtimes] Divide run() method to use multiple methods Feb 27, 2022
@Hedingber Hedingber merged commit eccb108 into mlrun:development Feb 27, 2022
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.

None yet

2 participants