summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2016-04-08 08:18:19 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2016-04-12 08:01:07 -0700
commitb4b058794ea3d0623e59f8e3967f17e189f621d0 (patch)
treee20e3c3863b983c9976de97069f1ed25ad128f46 /lib
parentc929556226e84ecb47ca9d9041dfab718e103eff (diff)
downloadansible-b4b058794ea3d0623e59f8e3967f17e189f621d0.tar.gz
Correct the worker.run documentation
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/executor/process/worker.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/ansible/executor/process/worker.py b/lib/ansible/executor/process/worker.py
index ce5de460a1..d1bc56f637 100644
--- a/lib/ansible/executor/process/worker.py
+++ b/lib/ansible/executor/process/worker.py
@@ -95,12 +95,9 @@ class WorkerProcess(multiprocessing.Process):
def run(self):
'''
- Called when the process is started, and loops indefinitely
- until an error is encountered (typically an IOerror from the
- queue pipe being disconnected). During the loop, we attempt
- to pull tasks off the job queue and run them, pushing the result
- onto the results queue. We also remove the host from the blocked
- hosts list, to signify that they are ready for their next task.
+ Called when the process is started. Pushes the result onto the
+ results queue. We also remove the host from the blocked hosts list, to
+ signify that they are ready for their next task.
'''
if HAS_ATFORK: