Running Pipelines in Grace
Overview
Pipelines in Grace allow users to automate processes such as model training or test runs. Pipelines are Kubernetes-native, meaning they run different containers in a defined sequence. Each container executes a script (e.g., a Python script), and steps can be run sequentially or in parallel with dependencies.
This guide explains how to create, configure, and run pipelines in Grace.
User Guide
Step 1: Access Pipelines
- Navigate to the MLOps section in the left-hand side ribbon.
- Select Pipelines.
Step 2: Create a New Pipeline
- Click Add New.
- A wizard will open to guide you through setup.
- Initial Setup
- Application Folder: Select the folder containing your script(s).
- Pipeline Name: Provide a name (e.g., test_123).
- Scheduling Options:
- Manual Run Only – Execute pipeline on demand.
- Scheduled Run – Define a regular date/time for automatic execution.
- Token (Optional): Add a token for user identification if required.
Step 3: Define Pipeline Steps
- Choose which Python scripts to execute and in what order.
- Configure each step:
- Container Name: e.g., test_run.
- Script: e.g., test_run.py.
- Dependencies: Define requirements.txt or other dependencies for installation.
- Arguments: Add any additional parameters if needed.
- Resources:
- CPU vs GPU execution
- Number of CPUs
- Memory allocation
- Click Create Step to add the first container.
- (Optional) Add additional steps:
- Each step can run sequentially or in parallel.
- Dependencies can be configured between steps (e.g., Step 2 depends on Step 1).
- This allows for building complex pipelines with multiple stages.
Step 4: Save and Run
- Save the pipeline once all steps are defined.
- Depending on setup:
- Manual Run: Click Run to start execution immediately.
- Scheduled Run: Pipeline will run at defined intervals.
Step 5: Monitor Execution
- During execution, you can monitor progress in real time:
- Pipeline Status: View status such as Running, Succeeded, or Failed.
- Timestamps: Track execution times.
- Step Logs:
- See installation of libraries, function execution, and outputs.
- Debug errors directly in the UI.
- When all steps complete, the pipeline status changes to Succeeded.
Step 6: Review History
- All executions of a pipeline are logged in the history view.
- Running the pipeline multiple times over days/weeks generates a complete execution history for tracking and auditing.
Summary
| Step | Description |
|---|---|
| Access Pipelines | Go to MLOps → Pipelines |
| Create New Pipeline | Select application folder, name, scheduling options, and token |
| Define Steps | Assign scripts, dependencies, resources, and execution order |
| Run Pipeline | Start manually or schedule for automatic execution |
| Monitor Execution | Track status, logs, and errors in real time |
| Review History | View all past pipeline runs for auditing and traceability |
By using Pipelines in Grace, you can automate script execution, scale workloads across containers, and maintain a clear execution history for your AI and data science processes.