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

Side by Side Diff: appengine/swarming/swarming_bot/bot_code/task_runner.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 7 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
OLDNEW
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 """Runs a Swarming task. 5 """Runs a Swarming task.
6 6
7 Downloads all the necessary files to run the task, executes the command and 7 Downloads all the necessary files to run the task, executes the command and
8 streams results back to the Swarming server. 8 streams results back to the Swarming server.
9 9
10 The process exit code is 0 when the task was executed, even if the task itself 10 The process exit code is 0 when the task was executed, even if the task itself
11 failed. If there's any failure in the setup or teardown, like invalid packet 11 failed. If there's any failure in the setup or teardown, like invalid packet
12 response, failure to contact the server, etc, a non zero exit code is used. It's 12 response, failure to contact the server, etc, a non zero exit code is used. It's
13 up to the calling process (bot_main.py) to signal that there was an internal 13 up to the calling process (bot_main.py) to signal that there was an internal
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 if options.start > now: 530 if options.start > now:
531 options.start = now 531 options.start = now
532 532
533 try: 533 try:
534 load_and_run( 534 load_and_run(
535 options.in_file, options.swarming_server, options.cost_usd_hour, 535 options.in_file, options.swarming_server, options.cost_usd_hour,
536 options.start, options.out_file, options.min_free_space) 536 options.start, options.out_file, options.min_free_space)
537 return 0 537 return 0
538 finally: 538 finally:
539 logging.info('quitting') 539 logging.info('quitting')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698