Skip to content

Commit 3e996e7

Browse files
authored
Merge pull request #506 from itamarst/505-incompatibility-with-dask-2024112
Fix incompatibility with newer Dask
2 parents 3fad015 + d532ea3 commit 3e996e7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/source/news.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Enhancements:
88

99
* Added official support for Python 3.13, though 1.15.0 works fine too.
1010

11+
Changes:
12+
13+
* Tests pass with latest Dask.
14+
1115
1.15.0
1216
^^^^^^
1317

eliot/dask.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
try:
88
from dask.distributed import Future
9+
from dask.highlevelgraph import HighLevelGraph
910
except:
1011

1112
class Future(object):
@@ -108,6 +109,9 @@ def _add_logging(dsk, ignore=None):
108109
109110
@return: New Dask graph.
110111
"""
112+
if isinstance(dsk, HighLevelGraph):
113+
dsk = dsk.to_dict()
114+
111115
ctx = current_action()
112116
result = {}
113117

0 commit comments

Comments
 (0)