From 1e63968016509694d5cb7040f156a20b734a8d2c Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Mon, 5 May 2025 11:55:59 +0200 Subject: [PATCH] DPL: do not calculate context quantities if the GUI is disabled Correct solution would be to do that on demand, quick fix for now. --- Framework/Core/src/CommonServices.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Framework/Core/src/CommonServices.cxx b/Framework/Core/src/CommonServices.cxx index 22324cd84b390..ec2bc78c3c860 100644 --- a/Framework/Core/src/CommonServices.cxx +++ b/Framework/Core/src/CommonServices.cxx @@ -852,7 +852,10 @@ auto flushMetrics(ServiceRegistryRef registry, DataProcessingStats& stats) -> vo } monitoring.send(std::move(metric)); }); - relayer.sendContextState(); + // Do not even calculate GUI related quantities if the GUI is disabled. + if (registry.get().driverHasGUI) { + relayer.sendContextState(); + } monitoring.flushBuffer(); O2_SIGNPOST_END(monitoring_service, sid, "flush", "done flushing metrics"); };