PipelineMeta
Pipeline Metadata
PipelineMeta resolves pipeline configuration from the PIPELINE_META environment variable.
PipelineMeta reads a JSON pipeline configuration from the PIPELINE_META environment variable and exposes it as attributes (model_name, endpoint_name, mode, serverless, etc.). It fails hard — raising RuntimeError if PIPELINE_META is unset or invalid — so pipeline steps don't run with silently missing config.
PipelineMeta: Resolves pipeline metadata from environment configuration.
PipelineMeta
PipelineMeta: Resolves pipeline metadata from the PIPELINE_META environment variable.
Reads pipeline configuration from the PIPELINE_META environment variable (JSON dict). Raises RuntimeError if PIPELINE_META is not set or contains invalid JSON.
Common Usage
from workbench.core.pipelines.pipeline_meta import PipelineMeta
pm = PipelineMeta()
model_name = pm.model_name
endpoint_name = pm.endpoint_name
mode = pm.mode
serverless = pm.serverless
# Access arbitrary keys (fails hard if key missing and no default)
custom_value = pm.get("custom_key", default="fallback")
Environment Variable
PIPELINE_META: JSON dict with pipeline configuration, e.g.:
Source code in src/workbench/core/pipelines/pipeline_meta.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |
challengers
property
The challenger model names for a promote node (its model inputs).
endpoint_name
property
The resolved endpoint name.
mode
property
The pipeline execution mode (e.g., 'dt', 'ts'), or None for a modeless run.
model_name
property
The resolved model name.
serverless
property
Whether to use serverless inference.
__init__()
Initialize PipelineMeta from the PIPELINE_META environment variable.
__repr__()
String representation of this PipelineMeta.
Source code in src/workbench/core/pipelines/pipeline_meta.py
dynamic_owner()
Return mode-appropriate owner string.
Uses the owner set via set_owner() and transforms based on mode: - dt / ts: "DT" - promote: "Pro-{owner}" - any other: "{owner}"
Returns:
| Type | Description |
|---|---|
str
|
The resolved owner string |
Source code in src/workbench/core/pipelines/pipeline_meta.py
get(key, default=_MISSING)
Get a value from the pipeline metadata.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
The key to look up |
required |
default
|
Any
|
Default value if key is not found (raises RuntimeError if omitted) |
_MISSING
|
Returns:
| Type | Description |
|---|---|
Any
|
The value for the key, or default if not found |
Source code in src/workbench/core/pipelines/pipeline_meta.py
set_owner(owner)
Set the owner for dynamic owner resolution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
The owner identifier (e.g., "BW", "Bob") |
required |
Questions?

The SuperCowPowers team is happy to answer any questions you may have about AWS and Workbench. Please contact us at workbench@supercowpowers.com or on chat us up on Discord