Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f13a6e

Browse files
author
Ville Tuulos
committed
Merge branch 'jflatow-public'
2 parents c9ec08a + 93133dd commit 0f13a6e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/disco/worker/classic/worker.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ class Worker(worker.Worker):
4444
:param map_init: initialization function for the map task.
4545
This function is called once before the task starts.
4646
47+
.. deprecated:: 0.4
48+
*map_init* has not been needed ever since
49+
:func:`InputStreams <disco.worker.classic.func.InputStream>`
50+
were introduced.
51+
Use *map_input_stream* and/or *map_reader* instead.
52+
4753
:type map_input_stream: sequence of :func:`disco.worker.classic.func.input_stream`
4854
:param map_input_stream: The given functions are chained together and the final resulting
4955
:class:`disco.worker.classic.func.InputStream` object is used
@@ -90,6 +96,12 @@ class Worker(worker.Worker):
9096
:param reduce_init: initialization function for the reduce task.
9197
This function is called once before the task starts.
9298
99+
.. deprecated:: 0.4
100+
*reduce_init* has not been needed ever since
101+
:func:`InputStreams <disco.worker.classic.func.InputStream>`
102+
were introduced.
103+
Use *reduce_input_stream* and/or *reduce_reader* instead.
104+
93105
:type reduce_input_stream: sequence of :func:`disco.worker.classic.func.output_stream`
94106
:param reduce_input_stream: The given functions are chained together and the last
95107
returned :class:`disco.worker.classic.func.InputStream` object is

0 commit comments

Comments
 (0)