cameraSnapshots

Trigger pipelines from the dashboard, SDK, CLI, or REST API.

A Pipeline Snapshot is an immutable snapshot of your pipeline that includes the pipeline DAG, code, configuration, and container images. Snapshots enable you to trigger pipeline runs without direct access to the codebase—from the ZenML Pro dashboard, Python SDK, CLI, or REST API.

circle-check

Why Use Snapshots?

Snapshots solve common production challenges:

  • Data Scientists can experiment with different parameters without modifying code

  • MLOps Engineers can schedule retraining or integrate with CI/CD systems

  • Stakeholders can trigger model training through the dashboard

  • External Systems can invoke pipelines via REST API calls

Requirements

circle-exclamation
circle-info

Platform Engineers: For snapshots to work in Hybrid or Self-hosted deployments, you must configure the workload manager on your Workspace Server. See Workspace Server Configuration - Workload Manager for the required environment variables and Kubernetes RBAC setup.

Creating Snapshots

From the CLI

You can also specify a configuration file and stack:

From Python SDK

From the Dashboard

  1. Navigate to a pipeline run

  2. Click ... in the top right corner

  3. Select + New Snapshot

  4. Enter a name and click Create

Running Snapshots

From the CLI

From Python SDK

From the Dashboard

  1. Click Run a Pipeline on the Pipelines page, or navigate to a snapshot and click Run Snapshot

  2. Modify configuration using the built-in editor or upload a YAML file

  3. Click Run

From REST API

circle-info

For REST API authentication, use Personal Access Tokens or Service Accounts.

Deleting Snapshots

Or via Python:

Important Notes

circle-exclamation
ZenML Scarf

Last updated

Was this helpful?