| OLD | NEW |
| 1 # Copyright 2014 The Swarming Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed by the Apache v2.0 license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Bot interface used in bot_config.py.""" | 5 """Bot interface used in bot_config.py.""" |
| 6 | 6 |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 import threading | 9 import threading |
| 10 import time | 10 import time |
| 11 | 11 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 if t.isAlive(): | 192 if t.isAlive(): |
| 193 logging.error('Timer thread did not terminate fast enough: %s', t) | 193 logging.error('Timer thread did not terminate fast enough: %s', t) |
| 194 | 194 |
| 195 def update_dimensions(self, new_dimensions): | 195 def update_dimensions(self, new_dimensions): |
| 196 """Called internally to update Bot.dimensions.""" | 196 """Called internally to update Bot.dimensions.""" |
| 197 self._attributes['dimensions'] = new_dimensions | 197 self._attributes['dimensions'] = new_dimensions |
| 198 | 198 |
| 199 def update_state(self, new_state): | 199 def update_state(self, new_state): |
| 200 """Called internally to update Bot.state.""" | 200 """Called internally to update Bot.state.""" |
| 201 self._attributes['state'] = new_state | 201 self._attributes['state'] = new_state |
| OLD | NEW |