-
Notifications
You must be signed in to change notification settings - Fork 509
Add triggering pipelines mini-tutorial #3495
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
Add triggering pipelines mini-tutorial #3495
Conversation
- Corrected the formatting of the instructions for setting up GitHub Secrets, ensuring clarity in the steps provided. - Improved the readability of the follow-up actions section by breaking a long sentence into two and ensuring proper line endings. This update aims to enhance user understanding and navigation within the tutorial, providing clearer guidance on integrating external systems with ZenML pipelines.
…lines - Introduced a comprehensive tutorial detailing the setup of CI/CD workflows for ML pipelines using ZenML and GitHub Actions. This includes steps for creating development and production stacks, setting up authentication, and configuring GitHub Actions for both CI and CD. - Updated the Table of Contents to include a new entry for "Continuous Integration and Deployment," enhancing navigation for users seeking guidance on CI/CD practices within ZenML. This addition aims to provide users with a structured approach to automating testing and deployment, ensuring high-quality models are delivered to production while maintaining reproducibility across environments.
…elines-and-ci-cd-tutorials
This commit updates the headers in the trigger-pipelines-from-external-systems.md tutorial to follow a more descriptive, action-oriented style consistent with other tutorials. Headers now focus on what each section accomplishes rather than using generic step numbers. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
This commit simplifies the pipeline example in the trigger-pipelines-from-external-systems.md tutorial by: 1. Removing the redundant save_results step since ZenML already handles artifact serialization 2. Updating the train_model step to return the model directly instead of a dictionary 3. Updating the evaluate step to accept the model directly 4. Removing the output_path parameter from the pipeline function 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
This commit updates the trigger-pipelines-from-external-systems.md tutorial with corrections for the Run Template section, based on verified working code: 1. Improve template creation code to use proper Pipeline ID and run sorting 2. Add detailed example for programmatic template triggering using Python client 3. Clarify that step parameters must be set at the step level in Python client 4. Add note about REST API parameter mapping to step parameters 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
This commit updates the REST API example in the trigger-pipelines-from-external-systems.md tutorial to use the correct payload format for triggering templates: 1. Changed from using "pipeline_parameters" to using step-level parameters 2. Updated the note to clarify that parameters must be specified at the step level 3. Aligned the example with the existing use-templates-rest-api.md documentation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
…elines-and-ci-cd-tutorials
- Add run template endpoint to Method 2 custom API example - Update documentation to show both direct pipeline and template execution - Add advantages of using templates in production - Keep consistent parameter handling between methods
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.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
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 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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
|
It includes the CI/CD docs draft but they aren't in the TOC. I can remove if you'd rather keep it out of the repo. |
Documentation Link Check Results✅ Absolute links check passed |
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/continuous-integration-and-deployment.md
Outdated
Show resolved
Hide resolved
…er guide. This deletion includes all sections related to setting up CI/CD for ML pipelines using ZenML and GitHub Actions, along with example code and best practices. The content was deemed redundant or outdated.
- Added information on creating run templates from existing pipeline runs. - Included examples for passing configuration files and specifying stacks when using the `create-run-template` command. - Emphasised best practices for tagging run templates and maintaining parameter stability when triggering pipelines externally. - Updated security best practices section to include API key usage. This update aims to improve clarity and usability for users integrating external systems with ZenML 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.
I left some comments - we need to talk sync about this
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorials/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
….com:zenml-io/zenml into doc/triggering-pipelines-and-ci-cd-tutorials
…elines-and-ci-cd-tutorials
… implementation steps This update provides comprehensive instructions for building a custom pipeline trigger API, including code examples, Dockerfile setup, and deployment guidelines. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Revised heading structure in the tutorial to maintain consistent style between methods. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
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.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
@htahir1 updated as per your feedback. Tested that it works when the API is deployed. |
Preview the docs here |
docs/book/user-guide/tutorial/trigger-pipelines-from-external-systems.md
Show resolved
Hide resolved
docs/book/user-guide/tutorial/trigger-pipelines-from-external-systems.md
Show resolved
Hide resolved
The tutorial now clearly explains that PIPELINE_API_KEY is a security token to protect API endpoints and emphasizes the importance of using strong, random keys in production environments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
….com:zenml-io/zenml into doc/triggering-pipelines-and-ci-cd-tutorials
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.
Almost there!
docs/book/user-guide/tutorial/trigger-pipelines-from-external-systems.md
Show resolved
Hide resolved
docs/book/user-guide/tutorial/trigger-pipelines-from-external-systems.md
Outdated
Show resolved
Hide resolved
docs/book/user-guide/tutorial/trigger-pipelines-from-external-systems.md
Show resolved
Hide resolved
docs/book/user-guide/tutorial/trigger-pipelines-from-external-systems.md
Show resolved
Hide resolved
- Add status_code=202 to the /trigger-async endpoint to properly indicate accepted status - Add status_code=200 to the /trigger endpoint for consistency - Better aligns API behavior with REST standards 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Remove synchronous /trigger endpoint - Use only one asynchronous trigger endpoint for better comparison with Method 1 - Update documentation to reflect the API changes - Streamline the Triggering Pipelines via API section 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
* WIP v1 * Update user guide tutorial on triggering pipelines from external systems - Corrected the formatting of the instructions for setting up GitHub Secrets, ensuring clarity in the steps provided. - Improved the readability of the follow-up actions section by breaking a long sentence into two and ensuring proper line endings. This update aims to enhance user understanding and navigation within the tutorial, providing clearer guidance on integrating external systems with ZenML pipelines. * WIP Add tutorial on Continuous Integration and Deployment for ML Pipelines - Introduced a comprehensive tutorial detailing the setup of CI/CD workflows for ML pipelines using ZenML and GitHub Actions. This includes steps for creating development and production stacks, setting up authentication, and configuring GitHub Actions for both CI and CD. - Updated the Table of Contents to include a new entry for "Continuous Integration and Deployment," enhancing navigation for users seeking guidance on CI/CD practices within ZenML. This addition aims to provide users with a structured approach to automating testing and deployment, ensuring high-quality models are delivered to production while maintaining reproducibility across environments. * Update headers * docs: improve tutorial header styles for consistency This commit updates the headers in the trigger-pipelines-from-external-systems.md tutorial to follow a more descriptive, action-oriented style consistent with other tutorials. Headers now focus on what each section accomplishes rather than using generic step numbers. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * docs: simplify trigger pipelines tutorial This commit simplifies the pipeline example in the trigger-pipelines-from-external-systems.md tutorial by: 1. Removing the redundant save_results step since ZenML already handles artifact serialization 2. Updating the train_model step to return the model directly instead of a dictionary 3. Updating the evaluate step to accept the model directly 4. Removing the output_path parameter from the pipeline function 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * docs: update run template usage in pipeline trigger tutorial This commit updates the trigger-pipelines-from-external-systems.md tutorial with corrections for the Run Template section, based on verified working code: 1. Improve template creation code to use proper Pipeline ID and run sorting 2. Add detailed example for programmatic template triggering using Python client 3. Clarify that step parameters must be set at the step level in Python client 4. Add note about REST API parameter mapping to step parameters 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * docs: fix REST API template payload in pipeline trigger tutorial This commit updates the REST API example in the trigger-pipelines-from-external-systems.md tutorial to use the correct payload format for triggering templates: 1. Changed from using "pipeline_parameters" to using step-level parameters 2. Updated the note to clarify that parameters must be specified at the step level 3. Aligned the example with the existing use-templates-rest-api.md documentation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Updates to triggers section * docs: add run template support to custom API tutorial - Add run template endpoint to Method 2 custom API example - Update documentation to show both direct pipeline and template execution - Add advantages of using templates in production - Keep consistent parameter handling between methods * add links * Fix CLI docs formatting * Remove the continuous integration and deployment tutorial from the user guide. This deletion includes all sections related to setting up CI/CD for ML pipelines using ZenML and GitHub Actions, along with example code and best practices. The content was deemed redundant or outdated. * docs: enhance trigger pipelines tutorial with run template details - Added information on creating run templates from existing pipeline runs. - Included examples for passing configuration files and specifying stacks when using the `create-run-template` command. - Emphasised best practices for tagging run templates and maintaining parameter stability when triggering pipelines externally. - Updated security best practices section to include API key usage. This update aims to improve clarity and usability for users integrating external systems with ZenML pipelines. * Updates following review * Expand Method 2 section in pipeline triggering tutorial with detailed implementation steps This update provides comprehensive instructions for building a custom pipeline trigger API, including code examples, Dockerfile setup, and deployment guidelines. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Update Method 2 section headings to match Method 1 style Revised heading structure in the tutorial to maintain consistent style between methods. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * add icon for page * Add explicit explanation of PIPELINE_API_KEY security purpose The tutorial now clearly explains that PIPELINE_API_KEY is a security token to protect API endpoints and emphasizes the importance of using strong, random keys in production environments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Add explicit status codes to FastAPI endpoints - Add status_code=202 to the /trigger-async endpoint to properly indicate accepted status - Add status_code=200 to the /trigger endpoint for consistency - Better aligns API behavior with REST standards 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Simplify custom API section in pipeline trigger tutorial - Remove synchronous /trigger endpoint - Use only one asynchronous trigger endpoint for better comparison with Method 1 - Update documentation to reflect the API changes - Streamline the Triggering Pipelines via API section 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]> (cherry picked from commit 7ec8c6f)
* WIP v1 * Update user guide tutorial on triggering pipelines from external systems - Corrected the formatting of the instructions for setting up GitHub Secrets, ensuring clarity in the steps provided. - Improved the readability of the follow-up actions section by breaking a long sentence into two and ensuring proper line endings. This update aims to enhance user understanding and navigation within the tutorial, providing clearer guidance on integrating external systems with ZenML pipelines. * WIP Add tutorial on Continuous Integration and Deployment for ML Pipelines - Introduced a comprehensive tutorial detailing the setup of CI/CD workflows for ML pipelines using ZenML and GitHub Actions. This includes steps for creating development and production stacks, setting up authentication, and configuring GitHub Actions for both CI and CD. - Updated the Table of Contents to include a new entry for "Continuous Integration and Deployment," enhancing navigation for users seeking guidance on CI/CD practices within ZenML. This addition aims to provide users with a structured approach to automating testing and deployment, ensuring high-quality models are delivered to production while maintaining reproducibility across environments. * Update headers * docs: improve tutorial header styles for consistency This commit updates the headers in the trigger-pipelines-from-external-systems.md tutorial to follow a more descriptive, action-oriented style consistent with other tutorials. Headers now focus on what each section accomplishes rather than using generic step numbers. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * docs: simplify trigger pipelines tutorial This commit simplifies the pipeline example in the trigger-pipelines-from-external-systems.md tutorial by: 1. Removing the redundant save_results step since ZenML already handles artifact serialization 2. Updating the train_model step to return the model directly instead of a dictionary 3. Updating the evaluate step to accept the model directly 4. Removing the output_path parameter from the pipeline function 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * docs: update run template usage in pipeline trigger tutorial This commit updates the trigger-pipelines-from-external-systems.md tutorial with corrections for the Run Template section, based on verified working code: 1. Improve template creation code to use proper Pipeline ID and run sorting 2. Add detailed example for programmatic template triggering using Python client 3. Clarify that step parameters must be set at the step level in Python client 4. Add note about REST API parameter mapping to step parameters 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * docs: fix REST API template payload in pipeline trigger tutorial This commit updates the REST API example in the trigger-pipelines-from-external-systems.md tutorial to use the correct payload format for triggering templates: 1. Changed from using "pipeline_parameters" to using step-level parameters 2. Updated the note to clarify that parameters must be specified at the step level 3. Aligned the example with the existing use-templates-rest-api.md documentation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Updates to triggers section * docs: add run template support to custom API tutorial - Add run template endpoint to Method 2 custom API example - Update documentation to show both direct pipeline and template execution - Add advantages of using templates in production - Keep consistent parameter handling between methods * add links * Fix CLI docs formatting * Remove the continuous integration and deployment tutorial from the user guide. This deletion includes all sections related to setting up CI/CD for ML pipelines using ZenML and GitHub Actions, along with example code and best practices. The content was deemed redundant or outdated. * docs: enhance trigger pipelines tutorial with run template details - Added information on creating run templates from existing pipeline runs. - Included examples for passing configuration files and specifying stacks when using the `create-run-template` command. - Emphasised best practices for tagging run templates and maintaining parameter stability when triggering pipelines externally. - Updated security best practices section to include API key usage. This update aims to improve clarity and usability for users integrating external systems with ZenML pipelines. * Updates following review * Expand Method 2 section in pipeline triggering tutorial with detailed implementation steps This update provides comprehensive instructions for building a custom pipeline trigger API, including code examples, Dockerfile setup, and deployment guidelines. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Update Method 2 section headings to match Method 1 style Revised heading structure in the tutorial to maintain consistent style between methods. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * add icon for page * Add explicit explanation of PIPELINE_API_KEY security purpose The tutorial now clearly explains that PIPELINE_API_KEY is a security token to protect API endpoints and emphasizes the importance of using strong, random keys in production environments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Add explicit status codes to FastAPI endpoints - Add status_code=202 to the /trigger-async endpoint to properly indicate accepted status - Add status_code=200 to the /trigger endpoint for consistency - Better aligns API behavior with REST standards 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Simplify custom API section in pipeline trigger tutorial - Remove synchronous /trigger endpoint - Use only one asynchronous trigger endpoint for better comparison with Method 1 - Update documentation to reflect the API changes - Streamline the Triggering Pipelines via API section 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]> (cherry picked from commit 7ec8c6f)
Added a tutorial showing how to trigger pipelines
Everything in there has been tested by me + it works / runs.