Skip to content

Commit

Permalink
add dry_run for load_ml_model Open-EO/openeo-geopyspark-driver#562
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVerstraelen committed Apr 30, 2024
1 parent 7fa3a6b commit a6a25a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openeo_driver/ProcessGraphDeserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,8 @@ def save_ml_model(args: dict, env: EvalEnv) -> MlModelResult:
@process_registry_100.add_function(spec=read_spec("openeo-processes/experimental/load_ml_model.json"))
@process_registry_2xx.add_function(spec=read_spec("openeo-processes/experimental/load_ml_model.json"))
def load_ml_model(args: dict, env: EvalEnv) -> DriverMlModel:
if env.get(ENV_DRY_RUN_TRACER):
return DriverMlModel()
job_id = extract_arg(args, "id")
return env.backend_implementation.load_ml_model(job_id)

Expand Down

0 comments on commit a6a25a3

Please sign in to comment.