-
Notifications
You must be signed in to change notification settings - Fork 559
Replace the restriction to use Repository inside step with a warning #792
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
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
5340bd4 to
f723e71
Compare
fa9r
left a comment
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.
Love the change! Only major question I have: are there some methods in Repository() that really should not be used from within a step and might lead to weird behavior?
| "@step(enable_cache=False)\n", | ||
| "def prediction_service_loader() -> BaseService:\n", | ||
| " \"\"\"Load the model service of our train_evaluate_deploy_pipeline.\"\"\"\n", | ||
| " repo = Repository(skip_repository_check=True)\n", |
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.
why was this removed? Isn't it still nicer to suppress those warning when running the quickstart?
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.
same for the other change below
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.
you had a valid point here. I didn't want to expose users to this hidden variable, so I removed it from here. But the correct way to hide it is to detect whether a step has caching enabled from within the step and only show that warning if that is the case. Which is what I did in the last commit.
f723e71 to
875c51b
Compare
875c51b to
47e258f
Compare
Describe changes
The restriction to use Repository inside step is an antiquated measure that has become a nuisance. This PR replaces it with a warning and removes some other unneeded code designed to address this same problem.
Pre-requisites
Please ensure you have done the following:
Types of changes