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

Unified Diff: masters/master.client.dart.packages/master.cfg

Issue 2353653002: Activate pubsub for dart masters (Closed)
Patch Set: Remove logging Created 4 years, 3 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 | « masters/master.client.dart.fyi/master.cfg ('k') | masters/master.client.dart/master.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: masters/master.client.dart.packages/master.cfg
diff --git a/masters/master.client.dart.packages/master.cfg b/masters/master.client.dart.packages/master.cfg
index 214d4062d8f004e1832ab7fa18931295b94ad3cc..958904c150dc3225d7c09f6a0722331d7f2feb0b 100644
--- a/masters/master.client.dart.packages/master.cfg
+++ b/masters/master.client.dart.packages/master.cfg
@@ -17,6 +17,7 @@ from master import build_utils
from master import master_utils
from master import slaves_list
from master import status_logger
+from master import pubsub_json_status_push
from master.factory import gclient_factory, annotator_factory
from master.factory.dart import dart_factory
from master.factory.dart import pub_poller
@@ -152,6 +153,15 @@ c['prioritizeBuilders'] = utils.prioritize_builders
c['status'] = [status_logger.StatusEventLogger()]
+# Add in the pubsub pusher, which pushes all status updates to a pubsub
+# topic. This will not run unless is_production_host is set to True.
+# This will fail on a production host if it cannot find the service
+# account file.
+pubsub_pusher = pubsub_json_status_push.StatusPush.CreateStatusPush(
+ activeMaster=ActiveMaster)
+if pubsub_pusher:
+ c['status'].append(pubsub_pusher)
+
if WEB_STATUS:
for status in utils.get_web_statuses(order_console_by_time=True,
extra_templates=['templates']):
« no previous file with comments | « masters/master.client.dart.fyi/master.cfg ('k') | masters/master.client.dart/master.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698