Skip to content

Commit ca44227

Browse files
committed
pv_farm: specify default job options
#143
1 parent 01fcac9 commit ca44227

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

algorithm_catalog/eurac/eurac_pv_farm_detection/benchmark_scenarios/eurac_pv_farm_detection.json

-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
"result": true
2424
}
2525
},
26-
"job_options": {
27-
"driver-memory": "1g",
28-
"executor-memory": "1g",
29-
"python-memory": "3g"}
30-
,
3126
"reference_data": {
3227
},
3328
"reference_options": {

algorithm_catalog/eurac/eurac_pv_farm_detection/openeo_udp/eurac_pv_farm_detection.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -442,5 +442,13 @@
442442
],
443443
"optional": true
444444
}
445-
]
445+
],
446+
"default_job_options": {
447+
"driver-memory": "1g",
448+
"executor-memory": "1g",
449+
"python-memory": "3g",
450+
"udf-dependency-archives": [
451+
"https://artifactory.vgt.vito.be/artifactory/auxdata-public/openeo/onnx_dependencies_1.16.3.zip#onnx_deps"
452+
]
453+
}
446454
}

algorithm_catalog/eurac/eurac_pv_farm_detection/openeo_udp/generate.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,24 @@ def generate() -> dict:
7777
}
7878
}
7979

80+
default_options = {
81+
"driver-memory": "1g",
82+
"executor-memory": "1g",
83+
"python-memory": "3g",
84+
"udf-dependency-archives": [
85+
"https://artifactory.vgt.vito.be/artifactory/auxdata-public/openeo/onnx_dependencies_1.16.3.zip#onnx_deps"
86+
]
87+
}
88+
8089
return build_process_dict(
8190
process_graph=dilated_cube,
8291
process_id="eurac_pv_farm_detection",
8392
summary="An openEO process developed by Eurac Research to detect photovoltaic farms, based on sentinel2 data.",
8493
description=(Path(__file__).parent / "eurac_pv_farm_detection_description.md").read_text(),
8594
parameters=[spatial_extent, temporal_extent],
8695
returns=returns,
87-
categories=["sentinel-2", "energy"]
96+
categories=["sentinel-2", "energy"],
97+
default_job_options=default_options
8898
)
8999

90100

0 commit comments

Comments
 (0)