OLD | NEW |
(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 |
OLD | NEW |