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

Add use_cache to BasePipeline #463

Merged
merged 3 commits into from
Mar 23, 2024
Merged

Add use_cache to BasePipeline #463

merged 3 commits into from
Mar 23, 2024

Conversation

plaguss
Copy link
Contributor

@plaguss plaguss commented Mar 22, 2024

Description

This PR adds an argument use_cache to BasePipeline to decide whether we should cache the pipeline and reuse it or not.

Closes #460.

@plaguss plaguss added this to the 1.0.0 milestone Mar 22, 2024
@plaguss plaguss self-assigned this Mar 22, 2024
@plaguss plaguss added the enhancement New feature or request label Mar 22, 2024
@plaguss plaguss linked an issue Mar 22, 2024 that may be closed by this pull request
Copy link
Member

@gabrielmbmb gabrielmbmb left a comment

Choose a reason for hiding this comment

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

LGTM! just a small comment

Comment on lines 267 to 268
if not self._use_cache:
return
Copy link
Member

Choose a reason for hiding this comment

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

I think we can still cache the pipeline execution even if use_cache is false. The parameter is more about using the cache or not when running the pipeline.

@gabrielmbmb gabrielmbmb merged commit 05674b5 into core-refactor Mar 23, 2024
4 checks passed
@gabrielmbmb gabrielmbmb deleted the use-cache branch March 23, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add use_cache constructor parameter to BasePipeline
2 participants