From 6c8228a26c831fc4d73d3b8fb21fc4a71d638ee0 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Thu, 11 Jun 2015 18:04:55 +0100 Subject: [PATCH] Invoking workload finalizers at the end of the run. --- wlauto/core/execution.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wlauto/core/execution.py b/wlauto/core/execution.py index 6f5d981f..ff6900a5 100644 --- a/wlauto/core/execution.py +++ b/wlauto/core/execution.py @@ -626,6 +626,10 @@ class Runner(object): self.context.end_job() def _finalize_run(self): + self.logger.info('Finalizing workloads') + for workload_spec in self.context.config.workload_specs: + workload_spec.workload.finalize(self.context) + self.logger.info('Finalizing.') self._send(signal.RUN_FIN)