1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

fw/execution: finalize jobs before run.

Finalize jobs before performing whole-run finalization. This makes more
sense than finalizing individual jobs after run as a whole has been
finalized.
This commit is contained in:
Sergei Trofimov 2018-05-11 14:46:01 +01:00 committed by Marc Bonnici
parent ec66ae2f6f
commit 0a5ceabc73

View File

@ -448,15 +448,16 @@ class Runner(object):
self.context.write_state()
def finalize_run(self):
self.logger.info('Run completed')
with log.indentcontext():
for job in self.context.completed_jobs:
job.finalize(self.context)
self.logger.info('Finalizing run')
self.context.end_run()
self.pm.enable_all()
self.pm.process_run_output(self.context)
self.pm.export_run_output(self.context)
self.pm.finalize()
with log.indentcontext():
for job in self.context.completed_jobs:
job.finalize(self.context)
signal.disconnect(self._error_signalled_callback, signal.ERROR_LOGGED)
signal.disconnect(self._warning_signalled_callback, signal.WARNING_LOGGED)