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

Unified Diff: server/site_server_job.py

Issue 6677136: Adding get_site_job_data() (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 9 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: server/site_server_job.py
diff --git a/server/site_server_job.py b/server/site_server_job.py
new file mode 100644
index 0000000000000000000000000000000000000000..7b2b80b8205a1b4557ef4eb411e313edad9258a3
--- /dev/null
+++ b/server/site_server_job.py
@@ -0,0 +1,18 @@
+# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+def get_site_job_data(job):
+ """Add custom data to the job keyval info.
+
+ When multiple machines are used in a job, change the hostname to
+ SERVER_JOB instead of machine1,machine2,... This makes the job reports
+ easier to read and keeps the tko_machines table from growing too large.
+ """
+ site_job_data = {}
+ if len(job.machines) > 1:
+ site_job_data['hostname'] = 'SERVER_JOB'
+ return site_job_data
+
+class site_server_job():
+ pass
« 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