mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
output_processors/postgres: Do not process output if not connected
Only try to process the run output if the processor is connected to a database.
This commit is contained in:
parent
9a9a2c0742
commit
5dcac0c8ef
@ -254,6 +254,8 @@ class PostgresqlResultProcessor(OutputProcessor):
|
||||
''' A final export of the RunOutput that updates existing parameters
|
||||
and uploads ones which are only generated after jobs have run.
|
||||
'''
|
||||
if not self.cursor: # Database did not connect correctly.
|
||||
return
|
||||
self.current_job_uuid = None
|
||||
# Update the job statuses following completion of the run
|
||||
for job in run_output.jobs:
|
||||
|
Loading…
x
Reference in New Issue
Block a user