mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +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
|
''' A final export of the RunOutput that updates existing parameters
|
||||||
and uploads ones which are only generated after jobs have run.
|
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
|
self.current_job_uuid = None
|
||||||
# Update the job statuses following completion of the run
|
# Update the job statuses following completion of the run
|
||||||
for job in run_output.jobs:
|
for job in run_output.jobs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user