From 836c743c5011207e7fe3730ec54a18b9a2ab0acc Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Wed, 6 Aug 2025 12:00:25 -0500 Subject: [PATCH] framework: Re-enable instruments before finalizing run Ensure all instruments are re-enabled prior to run finalization so their `finalize()` methods are invoked. This fixes an issue where instruments not enabled during the last job skipped finalization. Fixes: #1295 --- wa/framework/execution.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wa/framework/execution.py b/wa/framework/execution.py index 6daf2c64..528ce186 100644 --- a/wa/framework/execution.py +++ b/wa/framework/execution.py @@ -532,6 +532,7 @@ class Runner(object): job.finalize(self.context) self.logger.info('Finalizing run') self.context.end_run() + instrumentation.enable_all() self.pm.enable_all() with signal.wrap('RUN_OUTPUT_PROCESSED', self): self.pm.process_run_output(self.context)