[autotest] Correct updated scheduler docstring.
Dear god is `task` overloaded with meanings here. It's great that
everything has a task field, but with different types.
BUG=None
TEST=logged types, and raged at code
Change-Id: I40136c4f68e5ab6d8b4e3fb1c525cefc5542c8bf
Reviewed-on: https://gerrit.chromium.org/gerrit/63185
Tested-by: Alex Miller <milleral@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Alex Miller <milleral@chromium.org>
diff --git a/scheduler/monitor_db.py b/scheduler/monitor_db.py
index 88fdb85..39276d8 100755
--- a/scheduler/monitor_db.py
+++ b/scheduler/monitor_db.py
@@ -1065,7 +1065,9 @@
class Agent(object):
"""
- An agent for use by the Dispatcher class to perform a task.
+ An agent for use by the Dispatcher class to perform a task. An agent wraps
+ around an AgentTask mainly to associate the AgentTask with the queue_entry
+ and host ids.
The following methods are required on all task objects:
poll() - Called periodically to let the task check its status and
@@ -1084,7 +1086,7 @@
def __init__(self, task):
"""
- @param task: A task as described in the class docstring.
+ @param task: An instance of an AgentTask.
"""
self.task = task
@@ -1115,8 +1117,6 @@
self.task.abort()
if self.task.aborted:
# tasks can choose to ignore aborts
- # but task is an afe HQE model, which always aborts when asked
- # to, so this always happens given the current code.
self.finished = True