Skip to content

Commit cd904dd

Browse files
committed
Fix bad code inclusion of 'attach_process' for emissions monitor
1 parent 4de2f5f commit cd904dd

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

simvue/run.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -561,13 +561,6 @@ def _start(self) -> bool:
561561
self._get_child_processes() if self._parent_process else None
562562
)
563563

564-
if self._emissions_monitor:
565-
self._emissions_monitor.attach_process(self._parent_process)
566-
(
567-
self._emissions_monitor.attach_process(process)
568-
for process in self._child_processes or []
569-
)
570-
571564
self._shutdown_event = threading.Event()
572565
self._heartbeat_termination_trigger = threading.Event()
573566
self._alert_raised_trigger = threading.Event()

tests/functional/test_run_class.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def test_run_with_emissions_online(speedy_heartbeat, mock_co2_signal, create_pla
7070
run_ids=[run_created.id],
7171
)
7272
assert _total_metric_name in _metric_values
73+
raise Exception(_metric_values)
7374

7475

7576
@pytest.mark.run

0 commit comments

Comments
 (0)