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

run: consolidate run-cache logic #4535

Merged
merged 1 commit into from
Sep 6, 2020
Merged

run: consolidate run-cache logic #4535

merged 1 commit into from
Sep 6, 2020

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Sep 5, 2020

Existing lock files are an edge case of run-cache.

Prerequisite for #4223

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

@@ -17,6 +18,11 @@
logger = logging.getLogger(__name__)


class RunCacheNotFoundError(DvcException):
def __init__(self, stage):
super().__init__(f"No run-cache for {stage.addressing}")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only used for internal workflow, not user-facing.

return
except RunCacheNotFoundError:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using exception flow control to avoid unnecessary calls.

@efiop efiop changed the title run: consolidate run-cache logic [WIP] run: consolidate run-cache logic Sep 5, 2020
Existing lock files are just an edge case of run-cache.

Prerequisite for iterative#4223
@efiop efiop changed the title [WIP] run: consolidate run-cache logic run: consolidate run-cache logic Sep 6, 2020
@efiop efiop merged commit 93a2983 into iterative:master Sep 6, 2020
@efiop efiop added the refactoring Factoring and re-factoring label Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Factoring and re-factoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant