Pass store's kwargs to compute call#3300
Conversation
|
Not sure of a good test here given we already passed |
Appears the `kwargs` intended for the `compute` call in Dask Array's `store` were getting dropped after a recent rewrite. This corrects it so that `kwargs` are passed to the `compute` call.
020e02b to
bcefecf
Compare
|
While perhaps overkill, some version of my example from #3299 with the |
|
For the student: how many retries with |
For this reason, the |
|
We probably can't use retries= to test the store function. Retries is
specific to the distributed scheduler.
…On Mon, Mar 19, 2018 at 11:46 AM, Ryan Abernathey ***@***.***> wrote:
For the student: how many retries with UnreliableStore and N partitions
would it take to have a >99.9% chance of passing the test? :)
For this reason, the UnreliableStore should probably be modified to just
fail once and then succeed after, via some internal state memory.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3300 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AASszAtPtunndkKyM0AhaygsK2IIXOKaks5tf9LWgaJpZM4SwXuF>
.
|
|
We probably could create a custom |
That's what I would do (we've done similar things elsewhere). Something like: def test_forwarded_kwargs()
called = [False]
def myget(*args, **kwargs):
called[0] = True
assert 'foo' in kwargs
return dask.get(*args, **kwargs)
store([source], [target], get=myget, foo='fake keyword')
assert called[0] |
c322877 to
a723c0b
Compare
a723c0b to
00e0059
Compare
|
Thanks. Went ahead and did exactly that. Please let me know if there is anything else. |
Fixes #3299
Related #2980
Appears the
kwargsintended for thecomputecall in Dask Array'sstorewere getting dropped after a recent rewrite. This corrects it so thatkwargsare passed to thecomputecall.cc @mrocklin @rabernat