Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Unified Diff: scripts/master/pubsub_json_status_push.py

Issue 2406133002: pubsub: pending fix (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698