-
-
Notifications
You must be signed in to change notification settings - Fork 748
Closed
Description
Now that dask/dask#6889 and #4279 are in (thanks @sjperkins !) we can use the dask.annotate context manager to mark layers built within a context
with dask.annotate(foo="bar"):
x = da.ones(10)Some folks may also want to use this same context when calling compute/persist
with dask.annotate(foo="baz"):
x.compute()Some thoughts on how we might do this:
- This would probably require that we check
dask.config.get("annotations")insideClient._graph_to_futuresand then send those annotations up to the scheduler. - We would probably also want to handle those annotations in the
Scheduler.update_graph_hlgorScheduler.update_graph. - We'll need to figure out the relative priority when the layer annotations and the compute-time annotations disagree. My guess is that compute time annotations should take precedence.
@sjperkins does this interest you?
Metadata
Metadata
Assignees
Labels
No labels