OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Quest and Execution for running a test in Swarming. | 5 """Quest and Execution for running a test in Swarming. |
6 | 6 |
7 This is the only Quest/Execution where the Execution has a reference back to | 7 This is the only Quest/Execution where the Execution has a reference back to |
8 modify the Quest. | 8 modify the Quest. |
9 """ | 9 """ |
10 | 10 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 dimensions = [{'key': 'pool', 'value': 'Chrome-perf-pinpoint'}] | 136 dimensions = [{'key': 'pool', 'value': 'Chrome-perf-pinpoint'}] |
137 if self._first_execution: | 137 if self._first_execution: |
138 dimensions.append({'key': 'id', 'value': self._first_execution.bot_id}) | 138 dimensions.append({'key': 'id', 'value': self._first_execution.bot_id}) |
139 else: | 139 else: |
140 dimensions += self._dimensions | 140 dimensions += self._dimensions |
141 | 141 |
142 body = { | 142 body = { |
143 'name': 'Pinpoint job', | 143 'name': 'Pinpoint job', |
144 'user': 'Pinpoint', | 144 'user': 'Pinpoint', |
145 'priority': '100', | 145 'priority': '100', |
146 'expiration_secs': '600', | 146 'expiration_secs': '36000', # 10 hours. |
147 'properties': { | 147 'properties': { |
148 'inputs_ref': {'isolated': self._isolate_hash}, | 148 'inputs_ref': {'isolated': self._isolate_hash}, |
149 'extra_args': self._extra_args, | 149 'extra_args': self._extra_args, |
150 'dimensions': dimensions, | 150 'dimensions': dimensions, |
151 'execution_timeout_secs': '3600', | 151 'execution_timeout_secs': '7200', # 2 hours. |
152 'io_timeout_secs': '3600', | 152 'io_timeout_secs': '3600', |
153 }, | 153 }, |
154 } | 154 } |
155 response = swarming_service.Tasks().New(body) | 155 response = swarming_service.Tasks().New(body) |
156 | 156 |
157 self._task_id = response['task_id'] | 157 self._task_id = response['task_id'] |
OLD | NEW |