OLD | NEW |
1 # Copyright 2013 The LUCI Authors. All rights reserved. | 1 # Copyright 2013 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 under the Apache License, Version 2.0 |
3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
4 | 4 |
5 """Swarming bot main process. | 5 """Swarming bot main process. |
6 | 6 |
7 This is the program that communicates with the Swarming server, ensures the code | 7 This is the program that communicates with the Swarming server, ensures the code |
8 is always up to date and executes a child process to run tasks and upload | 8 is always up to date and executes a child process to run tasks and upload |
9 results back. | 9 results back. |
10 | 10 |
11 It manages self-update and rebooting the host in case of problems. | 11 It manages self-update and rebooting the host in case of problems. |
12 | 12 |
13 Set the environment variable SWARMING_LOAD_TEST=1 to disable the use of | 13 Set the environment variable SWARMING_LOAD_TEST=1 to disable the use of |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 | 737 |
738 error = None | 738 error = None |
739 if len(args) != 0: | 739 if len(args) != 0: |
740 error = 'Unexpected arguments: %s' % args | 740 error = 'Unexpected arguments: %s' % args |
741 try: | 741 try: |
742 return run_bot(error) | 742 return run_bot(error) |
743 finally: | 743 finally: |
744 call_hook(bot.Bot(None, None, None, os.path.dirname(THIS_FILE), None), | 744 call_hook(bot.Bot(None, None, None, os.path.dirname(THIS_FILE), None), |
745 'on_bot_shutdown') | 745 'on_bot_shutdown') |
746 logging.info('main() returning') | 746 logging.info('main() returning') |
OLD | NEW |