@@ -34,7 +34,7 @@ class _DeploymentState(BaseModel):
3434 model_config = {"extra" : "forbid" }
3535
3636 active : bool = False
37- use_in_memory : bool = False
37+ skip_artifact_materialization : bool = False
3838 request_id : Optional [str ] = None
3939 snapshot_id : Optional [str ] = None
4040 pipeline_parameters : Dict [str , Any ] = Field (default_factory = dict )
@@ -50,7 +50,7 @@ def reset(self) -> None:
5050 self .snapshot_id = None
5151 self .pipeline_parameters .clear ()
5252 self .outputs .clear ()
53- self .use_in_memory = False
53+ self .skip_artifact_materialization = False
5454 self .in_memory_data .clear ()
5555
5656
@@ -72,23 +72,23 @@ def start(
7272 request_id : str ,
7373 snapshot : PipelineSnapshotResponse ,
7474 parameters : Dict [str , Any ],
75- use_in_memory : bool = False ,
75+ skip_artifact_materialization : bool = False ,
7676) -> None :
7777 """Initialize deployment state for the current request context.
7878
7979 Args:
8080 request_id: The ID of the request.
8181 snapshot: The snapshot to deploy.
8282 parameters: The parameters to deploy.
83- use_in_memory : Whether to use in-memory mode .
83+ skip_artifact_materialization : Whether to skip artifact materialization .
8484 """
8585 state = _DeploymentState ()
8686 state .active = True
8787 state .request_id = request_id
8888 state .snapshot_id = str (snapshot .id )
8989 state .pipeline_parameters = parameters
9090 state .outputs = {}
91- state .use_in_memory = use_in_memory
91+ state .skip_artifact_materialization = skip_artifact_materialization
9292 _deployment_context .set (state )
9393
9494
@@ -131,15 +131,15 @@ def get_outputs() -> Dict[str, Dict[str, Any]]:
131131 return dict (_get_context ().outputs )
132132
133133
134- def should_use_in_memory_mode () -> bool :
135- """Check if the current request should use in-memory mode .
134+ def should_skip_artifact_materialization () -> bool :
135+ """Check if the current request should skip artifact materialization .
136136
137137 Returns:
138- True if in-memory mode is enabled for this request.
138+ True if artifact materialization is skipped for this request.
139139 """
140140 if is_active ():
141141 state = _get_context ()
142- return state .use_in_memory
142+ return state .skip_artifact_materialization
143143 return False
144144
145145
0 commit comments