Skip to content

Commit cd03f46

Browse files
committed
start tracking requested memory
1 parent 1f692a4 commit cd03f46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_job_tracker_v2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,7 @@ def zk_job_info() -> dict:
11671167
"max_executor_memory": {"unit": "gb", "value": 3.5},
11681168
"cpu": {"unit": "cpu-seconds", "value": pytest.approx(2.34 * 3600, rel=0.001)},
11691169
"memory": {"unit": "mb-seconds", "value": pytest.approx(5.678 * 3600, rel=0.001)},
1170+
'memory_requested': {'unit': 'mb-seconds', 'value': pytest.approx(5.678 * 3600, rel=0.001)},
11701171
"network_received": {"unit": "b", "value": pytest.approx(370841160371254.75, rel=0.001)},
11711172
"sentinelhub": {"unit": "sentinelhub_processing_unit", "value": 1.25},
11721173
},
@@ -1185,6 +1186,7 @@ def zk_job_info() -> dict:
11851186
"max_executor_memory": {"unit": "gb", "value": 3.5},
11861187
"cpu": {"unit": "cpu-seconds", "value": pytest.approx(2.34 * 3600, rel=0.001)},
11871188
"memory": {"unit": "mb-seconds", "value": pytest.approx(5.678 * 3600, rel=0.001)},
1189+
'memory_requested': {'unit': 'mb-seconds', 'value': pytest.approx(5.678 * 3600, rel=0.001)},
11881190
"network_received": {"unit": "b", "value": pytest.approx(370841160371254.75, rel=0.001)},
11891191
"sentinelhub": {"unit": "sentinelhub_processing_unit", "value": 1.25},
11901192
},
@@ -1592,6 +1594,7 @@ def test_k8s_no_zookeeper(self, k8s_mock, prometheus_mock, job_costs_calculator,
15921594
"input_pixel": {"unit": "mega-pixel", "value": 1.125},
15931595
"cpu": {"unit": "cpu-seconds", "value": pytest.approx(2.34 * 3600, rel=0.001)},
15941596
"memory": {"unit": "mb-seconds", "value": pytest.approx(5.678 * 3600, rel=0.001)},
1597+
"memory_requested": {'unit': 'mb-seconds', 'value': pytest.approx(5.678 * 3600, rel=0.001)},
15951598
"network_received": {"unit": "b", "value": pytest.approx(370841160371254.75, rel=0.001)},
15961599
"sentinelhub": {"unit": "sentinelhub_processing_unit", "value": 1.25},
15971600
"max_executor_memory": {"unit": "gb", "value": 3.5},

0 commit comments

Comments
 (0)