pipeline_context
PipelineContext
¶
A class that models the context of a pipeline.
The context consists of Table Metadata (the Table definition) and the actual data as a DataFrame.
Attributes:
| Name | Type | Description |
|---|---|---|
table_metadata |
The Nessy-Table definition. |
|
data |
The data of the context. |
|
runtime_info |
Additional runtime information, e.g. streaming status. |
|
status |
The status of the context. Can be "initialized", "successful" or "failed". |
Note
This is not a pydantic class, because Fabric does not support the type ConnectDataFrame.
Source code in src/cloe_nessy/pipeline/pipeline_context.py
from_existing(table_metadata=None, data=None, runtime_info=None)
¶
Creates a new PipelineContext from an existing one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_metadata
|
Table | None
|
The metadata of the new context. |
None
|
data
|
DataFrame | None
|
The data of the new context. |
None
|
runtime_info
|
dict[str, Any] | None
|
The runtime_info of the new context. |
None
|
Returns:
| Type | Description |
|---|---|
PipelineContext
|
The new PipelineContext. |