Correct the worker.run documentation
This commit is contained in:
parent
c929556226
commit
b4b058794e
1 changed files with 3 additions and 6 deletions
|
@ -95,12 +95,9 @@ class WorkerProcess(multiprocessing.Process):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
'''
|
'''
|
||||||
Called when the process is started, and loops indefinitely
|
Called when the process is started. Pushes the result onto the
|
||||||
until an error is encountered (typically an IOerror from the
|
results queue. We also remove the host from the blocked hosts list, to
|
||||||
queue pipe being disconnected). During the loop, we attempt
|
signify that they are ready for their next task.
|
||||||
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.
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if HAS_ATFORK:
|
if HAS_ATFORK:
|
||||||
|
|
Loading…
Reference in a new issue