1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-03 03:42:35 +01:00

fw/exec: add JOB_QUEUE_EXECUTION signals

Add signals just before and just after commencing the execution of the
job queue.
This commit is contained in:
Sergei Trofimov
2018-06-12 14:16:22 +01:00
committed by setrofim
parent 5f7fde206d
commit ea97372ece
3 changed files with 13 additions and 5 deletions

View File

@@ -454,10 +454,11 @@ class Runner(object):
self.initialize_run()
self.send(signal.RUN_INITIALIZED)
while self.context.job_queue:
if self.context.run_interrupted:
raise KeyboardInterrupt()
self.run_next_job(self.context)
with signal.wrap('JOB_QUEUE_EXECUTION', self, self.context):
while self.context.job_queue:
if self.context.run_interrupted:
raise KeyboardInterrupt()
self.run_next_job(self.context)
except KeyboardInterrupt as e:
log.log_error(e, self.logger)