-
Notifications
You must be signed in to change notification settings - Fork 438
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
Use native VertexAI scheduler capability instead of old GCP official workaround #2310
Use native VertexAI scheduler capability instead of old GCP official workaround #2310
Conversation
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
f42ed0f
to
9726a3e
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.
Wow love this change and it seems very thorough. Thank you @francoisserra for getting rid of that ugly scheduling code! 🚀 I just have a couple of comments. In general I also think we should remove "google-cloud-scheduler>=2.7.3",
"google-cloud-functions>=1.8.3", as dependencies in zenml/integations/gcp/__init__/py
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.
Looks good to me at this point. We'll test this on our end as well.
docs/book/stacks-and-components/component-guide/orchestrators/vertex.md
Outdated
Show resolved
Hide resolved
docs/book/stacks-and-components/component-guide/orchestrators/vertex.md
Outdated
Show resolved
Hide resolved
src/zenml/integrations/gcp/orchestrators/vertex_orchestrator.py
Outdated
Show resolved
Hide resolved
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.
Looks good, Great PR!
…vertex.md Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com>
…vertex.md Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com>
Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com>
src/zenml/integrations/gcp/orchestrators/vertex_orchestrator.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com>
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 one! the only thing left IMO is just talking about timezones! :-) Rest looks great!
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.
Awesome. @francoisserra thank you so much for this! People are gonna love it! 🚀
@coderabbitai review |
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: pypi/google-api-python-client@1.12.11, pypi/google-api-python-client@1.12.11 |
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.
Two tiny nits, but otherwise looks good to go. I'll merge these in from my end.
docs/book/stacks-and-components/component-guide/orchestrators/vertex.md
Outdated
Show resolved
Hide resolved
src/zenml/integrations/gcp/orchestrators/vertex_orchestrator.py
Outdated
Show resolved
Hide resolved
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.
Thank you for this!
…workaround (zenml-io#2310) * Use native VertexAI pipelines scheduling facility * deprecate VertexOrchestrator no longer used fields * updating docs * remove dead code * style: 🎨 linting * Update docs/book/stacks-and-components/component-guide/orchestrators/vertex.md Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com> * Update docs/book/stacks-and-components/component-guide/orchestrators/vertex.md Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com> * Update src/zenml/integrations/gcp/orchestrators/vertex_orchestrator.py Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com> * Remove no longer used libraries * feat: add support for start_time and end_time in the schedule * Update src/zenml/integrations/gcp/orchestrators/vertex_orchestrator.py Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com> * docs: Add details about schedule parameters * Apply suggestions from code review --------- Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com> Co-authored-by: Hamza Tahir <hamza@zenml.io> Co-authored-by: Barış Can Durak <36421093+bcdurak@users.noreply.github.com>
…workaround (zenml-io#2310) * Use native VertexAI pipelines scheduling facility * deprecate VertexOrchestrator no longer used fields * updating docs * remove dead code * style: 🎨 linting * Update docs/book/stacks-and-components/component-guide/orchestrators/vertex.md Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com> * Update docs/book/stacks-and-components/component-guide/orchestrators/vertex.md Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com> * Update src/zenml/integrations/gcp/orchestrators/vertex_orchestrator.py Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com> * Remove no longer used libraries * feat: add support for start_time and end_time in the schedule * Update src/zenml/integrations/gcp/orchestrators/vertex_orchestrator.py Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com> * docs: Add details about schedule parameters * Apply suggestions from code review --------- Co-authored-by: Alex Strick van Linschoten <strickvl@users.noreply.github.com> Co-authored-by: Hamza Tahir <hamza@zenml.io> Co-authored-by: Barış Can Durak <36421093+bcdurak@users.noreply.github.com>
Describe changes
I implemented the switch to native VertexAI pipelines scheduling capability instead of the old way that was relying on creating a cloud function along with a cloud scheduler.
It somewhat simplifies the ZenML VertexAI orchestrator code and also the comprehension (activation/deletion/...) of the scheduled pipelines since now it fully embraces the native VertexAI philosophy.
Note that I deprecated the no longer used settings fields related to "cloud functions" and "cloud scheduler" service accounts (and updated the doc).
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