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:
committed by
setrofim
parent
5f7fde206d
commit
ea97372ece
@@ -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)
|
||||
|
Reference in New Issue
Block a user