| Index: scripts/master/pubsub_json_status_push.py
|
| diff --git a/scripts/master/pubsub_json_status_push.py b/scripts/master/pubsub_json_status_push.py
|
| index 8b5fc8eb32f18d579e2a035e5bf1ca5fa83a619d..8df82064e8b7a81fb1a9bd728faebfc171f967d0 100644
|
| --- a/scripts/master/pubsub_json_status_push.py
|
| +++ b/scripts/master/pubsub_json_status_push.py
|
| @@ -376,7 +376,7 @@ class StatusPush(StatusReceiverMultiService):
|
| # This caps the amount of postgres db calls for really out of
|
| # control builders
|
| pending = pending[:75]
|
| - pendingStatues = yield defer.DeferredList(
|
| + pendingStates = yield defer.DeferredList(
|
| [p.asDict_async() for p in pending])
|
| # Not included: basedir, cachedBuilds.
|
| # cachedBuilds isn't useful and takes a ton of resources to compute.
|
| @@ -384,7 +384,8 @@ class StatusPush(StatusReceiverMultiService):
|
| 'slaves': builder.slavenames,
|
| 'currentBuilds': sorted(b.getNumber() for b in builder.currentBuilds),
|
| 'pendingBuilds': len(pending),
|
| - 'pendingBuildStatues': pendingStatues,
|
| + # p is a tuple of (success, payload)
|
| + 'pendingBuildStates': [p[1] for p in pendingStates if p[0]],
|
| 'state': builder.getState()[0],
|
| 'category': builder.category,
|
| }
|
|
|