Do I used the CachingPool incorrectly, or is this a bug?
On Julia 1.0.2:
using Distributed
addprocs(2)
@everywhere f_passall(a,x) = length(x) + a
its = 1:20
bigarr = ones(10^8)
pool = CachingPool(workers())
pmap(pool, x->f_passall(x,bigarr), its)
throws:
MethodError: no method matching iterate(::getfield(Main, Symbol("##9#10")))
Closest candidates are:
iterate(!Matched::Core.SimpleVector) at essentials.jl:589
iterate(!Matched::Core.SimpleVector, !Matched::Any) at essentials.jl:589
iterate(!Matched::ExponentialBackOff) at error.jl:171
...
in top-level scope at base\none
in pmap at stdlib\v1.0\Distributed\src\pmap.jl:157
in #pmap#226 at stdlib\v1.0\Distributed\src\pmap.jl:157
in pmap at stdlib\v1.0\Distributed\src\pmap.jl:156
in #pmap#225 at stdlib\v1.0\Distributed\src\pmap.jl:156
in pmap at stdlib\v1.0\Distributed\src\pmap.jl:101
in #pmap#215 at stdlib\v1.0\Distributed\src\pmap.jl:126
in at base\none
in #asyncmap#667 at base\asyncmap.jl:81
in at base\none
in #async_usemap#668 at base\asyncmap.jl:103
in wrap_n_exec_twice at base\asyncmap.jl:154
in maptwice at base\asyncmap.jl:162
in map at base\abstractarray.jl:2013
in collect at base\array.jl:619
in iterate at base\generator.jl:44
in iterate at base\iterators.jl:320
in zip_iterate at base\iterators.jl:300