-
Notifications
You must be signed in to change notification settings - Fork 25
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
Update caching arguments to include ComponentOp
and the Image
class
#802
Conversation
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.
Updated the parquet file to include more rows since I was running into issue with the small dataset (probably due to empty partitions)
@@ -94,8 +94,8 @@ def __init__( | |||
image: str, | |||
*, | |||
description: t.Optional[str] = None, | |||
consumes: t.Optional[t.Dict[str, t.Union[str, pa.DataType]]] = None, | |||
produces: t.Optional[t.Dict[str, t.Union[str, pa.DataType]]] = None, | |||
consumes: t.Optional[t.Dict[str, t.Union[str, pa.DataType, bool]]] = None, |
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.
to accommodate for 'additional_field=True`
1ca4479
to
37b1b42
Compare
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.
Thx ! We'll see about the requirements in another PR
PR that updates the cache key estimation to take into account the
ComponentSpec
instead of theComponentOp
(operation op has both the component spec and the innerproduces
andconsumes
as well as theImage
Tested on the example pipeline and caching seems to work fine for lightweight component, only issue is that it will always download the requirements (fondant + extra user dependencies) before skipping the execution of the component. This can become frustrating for iterative development with an increase of dependencies and components.
We might be able to mitigate this by providing base images with pre-installed Fondant version and move the installation of the extras after the cache hit estimation. Best to tackle this in a separate PR. Issue ticket here
The PR also include some small changes to function names to best reflect what they do