Chromium Code Reviews
DescriptionMinor refactoring in task_runner.py in preparation for adding more code.
In particular:
* Move all auth related stuff into bot_auth.py. It will grow later.
task_runner.py is already huge.
* Move auth init/shutdown to load_and_run, run_command is too big.
* Use InternalError exception instead of ValueError to signal errors.
* Rename MustExit to ExitSignal to indicate that it is raised by signals.
* Various nits in comments.
Also it makes more kinds of errors recognized as internal errors. For example,
IOError when reading from a task process pipe.
R=maruel@chromium.org
BUG=
Committed: https://github.com/luci/luci-py/commit/43a6d619519fc21eb427cdd25b6d912c4616ff6f
Patch Set 1 #
Total comments: 23
Patch Set 2 : Minor refactoring in task_runner.py in preparation for adding more code. #
Messages
Total messages: 8 (3 generated)
|
|||||||||||||||||||||||||||||||||||||