-
Notifications
You must be signed in to change notification settings - Fork 442
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
Added docs for trigger interface #2806
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
docs/book/how-to/build-pipelines/configuring-a-pipeline-at-runtime.md
Outdated
Show resolved
Hide resolved
docs/book/how-to/build-pipelines/configuring-a-pipeline-at-runtime.md
Outdated
Show resolved
Hide resolved
docs/book/how-to/build-pipelines/configuring-a-pipeline-at-runtime.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Alex Strick van Linschoten <[email protected]>
``` | ||
|
||
{% hint style="info" %} | ||
Here we are calling one pipeline from within another pipeline, so functionally the `data_loading_pipeline` is functioning as a step within the `training_pipeline` though when it runs it is executing as an entirely separate pipeline. These two pipelines will be visible as separate pipelines within the ZenML dashboard, but practically they are working together within the umbrella of the `training_pipeline`. In order to trigger a pipeline from another, see [here](../trigger-pipelines/trigger-a-pipeline-from-another.md) |
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.
though when it runs it is executing as an entirely separate pipeline
It is not though right, it just adds the steps to training_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.
Actually this entire paragraph is wrong. They will not show up as separate 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.
TIL :)
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 just used what @strickvl said :D
|
||
There are three calls that need to be made in order to trigger a pipeline from the REST API: | ||
|
||
1. `GET /pipelines?name=<PIPELINE_NAME>` -> This returns the <PIPELINE_ID> |
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 returns a list of responses, which they need to parse the ID from
There are three calls that need to be made in order to trigger a pipeline from the REST API: | ||
|
||
1. `GET /pipelines?name=<PIPELINE_NAME>` -> This returns the <PIPELINE_ID> | ||
2. `GET /pipeline_builds?pipeline_id=<PIPELINE_ID>` -> This returns the build ID |
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 returns a list again, which they need to parse the ID from
2. `GET /pipeline_builds?pipeline_id=<PIPELINE_ID>` -> This returns the build ID | ||
3. `POST /pipeline_builds/<BUILD_ID>/runs` -> This runs the pipeline. You can pass the [PipelineRunConfiguration](https://sdkdocs.zenml.io/latest/core_code_docs/core-config/#zenml.config.pipeline_run_configuration.PipelineRunConfiguration) in the body | ||
|
||
The above set of REST calls means that you can only trigger a pipeline that has been [built before](../customize-docker-builds/reuse-docker-builds.md). |
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.
We should probably mention again that this needs a build with a remote stack etc.
@@ -0,0 +1,29 @@ | |||
--- | |||
description: >- | |||
Trigger a pipeline from the rest API. |
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.
client
Trigger a pipeline from the rest API. | ||
--- | ||
|
||
# Trigger a pipeline from another |
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.
client
Images automagically compressed by Calibre's image-actions ✨ Compression reduced images by 38.8%, saving 26.43 KB.
236 images did not require optimisation. Update required: Update image-actions configuration to the latest version before 1/1/21. See README for instructions. |
Co-authored-by: Michael Schuster <[email protected]>
…nml into doc/trigger-client-interface
Describe changes
I added a bunch of docs I felt were missing
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