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

Unified Diff: scripts/master/pubsub_json_status_push.py

Issue 2391913002: Add state and category to pubsub info (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 1a549acfcc484ede37e5e9b3fa6579e2399e0808..8b5fc8eb32f18d579e2a035e5bf1ca5fa83a619d 100644
--- a/scripts/master/pubsub_json_status_push.py
+++ b/scripts/master/pubsub_json_status_push.py
@@ -378,13 +378,15 @@ class StatusPush(StatusReceiverMultiService):
pending = pending[:75]
pendingStatues = yield defer.DeferredList(
[p.asDict_async() for p in pending])
- # Not included: basedir, category, cachedBuilds, state.
+ # Not included: basedir, cachedBuilds.
# cachedBuilds isn't useful and takes a ton of resources to compute.
builder_info = {
'slaves': builder.slavenames,
'currentBuilds': sorted(b.getNumber() for b in builder.currentBuilds),
'pendingBuilds': len(pending),
'pendingBuildStatues': pendingStatues,
+ 'state': builder.getState()[0],
+ 'category': builder.category,
}
builder_infos[name] = builder_info
« 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