-
Notifications
You must be signed in to change notification settings - Fork 26
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
Create separate class for metadata #372
Conversation
eab1f0d
to
a827668
Compare
src/fondant/compiler.py
Outdated
self, | ||
pipeline: Pipeline, | ||
): | ||
self.pipeline = pipeline |
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.
I originally proposed to move the pipeline
argument to the compile
method, and I still think that's more logical.
Why is the pipeline passed as an initialization argument instead of to the
compile
method. From a logical perspective, I wouldn't expect a compiler instance to be specific to a single pipeline.
Originally posted by @RobbeSneyders in #194 (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.
oh I see, makes sense. I'll revert the changes
src/fondant/compiler.py
Outdated
path, volume = self._patch_path(base_path=pipeline.base_path) | ||
run_id = f"{pipeline.name}-{timestamp}" | ||
metadata = MetaData(run_id=run_id, base_path=path) | ||
datetime.datetime.now().strftime("%Y%m%d%H%M%S") |
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.
Is this line doing anything?
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.
No, it should be removed
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.
Nice change, makes sense
Co-authored-by: Georges Lorré <[email protected]>
PR that creates a metadata class, this will make it easier to implement #368 (was originally part of #325 but decided to break it down to make it easier to review). Few other notable changes: - The `run_id` between both runners has now an identical format (name_timestamp), we no longer need the uid of kfp since it's just used to store the native output artifacts - The `safe_component_name` has been moved from the local runner to the component spec to avoid having to plug it everywhere --------- Co-authored-by: Georges Lorré <[email protected]>
PR that creates a metadata class, this will make it easier to implement #368 (was originally part of #325 but decided to break it down to make it easier to review).
Few other notable changes:
run_id
between both runners has now an identical format (name_timestamp), we no longer need the uid of kfp since it's just used to store the native output artifactssafe_component_name
has been moved from the local runner to the component spec to avoid having to plug it everywhere