For the complete documentation index, see llms.txt. This page is also available as Markdown.

Snapshots

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.

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

Platform Engineers: For snapshots to work in Hybrid or Self-hosted deployments, you must configure the workload manager on your Workspace Server. See Enable Snapshot (Workload Manager) Support for the Workspace Server 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

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

Deleting Snapshots

Or via Python:

Important Notes

ZenML Scarf

Last updated

Was this helpful?