On 16:40 Tue 14 May, Pavel Hančar wrote:
> Thanks,
> but can I pass a variable from map_init to map? I tried to modify params
> argument, but it doesn't work.
Right, you might need to use a global variable :P
The next version of Disco has a better API to support precisely this.
If you want to try a beta version of it, it's in the branch
'devel/scheduler-lib' at
github.com/pmundkur/disco. Look at the
'init' function in
https://github.com/pmundkur/disco/blob/devel/scheduler-lib/lib/disco/worker/pipeline/worker.py
Feedback on this API would be much appreciated, especially before it
gets fixed into a formal Disco release.
--prashanth