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

Side by Side 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, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 def get_site_job_data(job):
6 """Add custom data to the job keyval info.
7
8 When multiple machines are used in a job, change the hostname to
9 SERVER_JOB instead of machine1,machine2,... This makes the job reports
10 easier to read and keeps the tko_machines table from growing too large.
11 """
12 site_job_data = {}
13 if len(job.machines) > 1:
14 site_job_data['hostname'] = 'SERVER_JOB'
15 return site_job_data
16
17 class site_server_job():
18 pass
OLDNEW
« 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