Skip to content

Commit

Permalink
Fix LocalCUDACluster's parsing of worker_class
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Oct 24, 2023
1 parent 6155732 commit 30513fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dask_cuda/local_cuda_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
import os
import warnings
from functools import partial

import dask
from distributed import LocalCluster, Nanny, Worker
Expand Down Expand Up @@ -339,6 +340,8 @@ def __init__(
"`distributed.local_cuda_cluster.LoggedWorker`, and specify "
"`log_spilling=False`."
)
if not isinstance(worker_class, Nanny):
worker_class = partial(Nanny, worker_class=worker_class)

self.pre_import = pre_import

Expand Down

0 comments on commit 30513fd

Please sign in to comment.