Navigation Menu

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

Cache Validator documentation #107

Merged
merged 7 commits into from Aug 14, 2018
Merged

Cache Validator documentation #107

merged 7 commits into from Aug 14, 2018

Conversation

cicdw
Copy link
Member

@cicdw cicdw commented Aug 13, 2018

Documentation for cache validators + a new test / warning.

@cicdw cicdw requested review from jlowin and joshmeek August 13, 2018 21:40
@@ -88,6 +89,11 @@ def __init__(
self.trigger = trigger or prefect.triggers.all_successful
self.skip_on_upstream_skip = skip_on_upstream_skip

if cache_for is None and cache_validator is not None:
warnings.warn(
Copy link
Member

Choose a reason for hiding this comment

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

In another PR you used from warnings import warn as _warn, which I liked and used elsewhere -- just curious if that was for a specific purpose not applicable here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, I used that in executors.__init__.py so that, e.g., tab completion on prefect.engine.executors wouldn't display it. I usually treat __init__.py files as hallowed ground for imports for no real reason. Happy to do that here, too, to be consistent.

@cicdw cicdw merged commit 9a20c20 into master Aug 14, 2018
@cicdw cicdw deleted the cacheing-docs branch August 14, 2018 15:44
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