26f188a102
The _group_runs_by_key() helper function is there to re-organize the data grouped by a metadata value. However, it was not fault tolerant if the metadata key used for grouping was missing from any of the list of runs. In the course of normal operation this should not occur, because the metadata should be the same for all jobs in the OpenStack subunit2sql db. But, due to a worker bug and/or a service restart we're encountering a run that's missing a few metadata values. To make this error non-fatal this commit augments the function to just ignore runs where the groupby_key is not in the metadata. Change-Id: I87087c8e3a985d883db78e008fd14f4fb9ac4e24 |
||
---|---|---|
.. | ||
tests | ||
__init__.py | ||
api.py | ||
base_aggregator.py | ||
distributed_dbm.py | ||
run_aggregator.py | ||
test_run_aggregator.py |