1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01: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:
Marc Bonnici 2018-09-20 17:03:46 +01:00
parent 9a9a2c0742
commit 5dcac0c8ef

View File

@ -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: