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:
parent
ec66ae2f6f
commit
0a5ceabc73
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user