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] Fix with_priority_class default param #1245

Merged
merged 2 commits into from Aug 24, 2021

Conversation

alonmr
Copy link
Member

@alonmr alonmr commented Aug 24, 2021

Default argument values are evaluated only once per module load, Therefore mlconf.default_function_priority_class_name default argument will never be evaluated again and we always get an empty string.
The convention for achieving the desired result in Python is to provide a default value of None.

@alonmr alonmr changed the title [Pod, Nuclio] with priority class default param fix [Pod] [Nuclio] with priority class default param fix Aug 24, 2021
@Hedingber Hedingber changed the title [Pod] [Nuclio] with priority class default param fix [Runtimes] Fix with_priority_class default param Aug 24, 2021
@Hedingber Hedingber merged commit f155836 into mlrun:development Aug 24, 2021
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