Skip to content

Commit

Permalink
Merge pull request #873 from minrk/fix-join
Browse files Browse the repository at this point in the history
fix AsyncResult.join
  • Loading branch information
minrk authored Mar 5, 2024
2 parents 233bfe9 + dab234f commit 9ff1800
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipyparallel/client/asyncresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ def join(cls, *async_results):
client=first._client,
fname=first._fname,
return_exceptions=first._return_exceptions,
children=list(chain(ar._children for ar in async_results)),
targets=list(chain(ar._targets for ar in async_results)),
children=list(chain(*(ar._children for ar in async_results))),
targets=list(chain(*(ar._targets for ar in async_results))),
owner=False,
)

Expand Down
2 changes: 2 additions & 0 deletions ipyparallel/tests/test_asyncresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ def test_split(self):
# get doubly-nested lists because these are
split_results = [ar.get(timeout=10) for ar in children]
assert split_results == result
joined = ipp.AsyncResult.join(*children)
assert joined.get(timeout=1) == result

def test_split_map_result(self):
v = self.client.load_balanced_view()
Expand Down

0 comments on commit 9ff1800

Please sign in to comment.