-
Notifications
You must be signed in to change notification settings - Fork 514
Allow specifying run tags in pipeline configuration #3130
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
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Good one!
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.
This looks great. I have a few follow-up comments though:
-
First, since we are using tags more often now, it would be great if we implement a filtering mechanism for these entities based on their tags. (Not just for pipeline runs, but also for artifact versions, model versions, and so on). What do you think?
-
We have recently added the ability to add tags to
sagemaker
pipelines and steps. Structurally, they look a bit different and it might get a bit confusing to define tags separately for ZenML pipelines and orchestrator pipelines.
pipeline_settings = SagemakerOrchestratorSettings(
pipeline_tags={
"project": "my-ml-project",
"environment": "production",
}
)
step_settings = SagemakerOrchestratorSettings(
tags={
"step": "data-preprocessing",
"owner": "data-team"
}
)
- Do you think there is also value in using the same tags in the future to tag step runs as well (as we do for Sagemaker pipelines)?
|
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.
- Filtering by tags is implemented in the API and even in the frontend for all these entities? Or am I missing some other place where you'd want to filter by them?
- We currently don't display steps anywhere separately (at least in the dashboard, which IMO is the main usecase for filtering). So I don't see any value in tagging step runs, at least for now. As for the confusion with sagemaker tags: They'll figure it out if they explicitly define tags for their sagemaker orchestrator and they don't show up on their ZenML pipelines, I wouldn't worry about that.
You are absolutely right. I looked over the filter model, could not see anything related to tags amongst the attributes, got confused, and completely overlooked the fact that it inherits from WorkspaceScopedTaggableFilter
🤦
As for Sagemaker (and for any other orchestrator for that matter), I think the UX could be improved a bit but I think we can take another look later. I trust your judgement on this one.
* Add tags to pipeline configurations * Merge lists in configurations * Merge tags * Docs * Add test * Improve comment * Add redirect * Fix redirect
Describe changes
This PR adds the ability to specify tags for pipeline runs
pipeline.configure/with_options
Pre-requisites
Please ensure you have done the following:
develop
and the open PR is targetingdevelop
. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.Types of changes