Closed carstenbauer closed 7 months ago
This is why providing init
arguments is good. But yeah, we should figure out a good way to deal with this.
Either we should do a try/catch
pattern, or we should just check if the collection is empty, and if it is, then bail out
I attempted a basic fix with try
/catch
in #83.
or we should just check if the collection is empty, and if it is, then bail out
In this case we couldn't use mapreduce(_,_,chnl::Channel)
but would have to roll out our own reduction. I don't particularly like that.
This is why providing
init
arguments is good.
We could force the user to provide an init
. But doesn't seem ideal either, especially because this (likely) only happens for the case of little work per item and/or very few items. In this case, using GreedyScheduler
is anyways questionable I guess.
Non-deterministic bug when using the greedy scheduler.
For small(ish)
N
, sometimes there are tasks that don't get any elements from the channel leading to aMethodError
.