Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default number of workers in a dask compute?

Tags:

python

dask

@delayed
def do_something():
    # Does some work
    pass

futures = [do_something() for x in range(100)]
compute(*futures)

does the default number of workers depend on our cpu cores? or does it run all the 100 in parallel (i assume this is not the case)

but how does it make a default worker count?

like image 629
FrozenSoul90 Avatar asked Sep 07 '25 17:09

FrozenSoul90


1 Answers

According to the dask website it defaults, as you suggest, to the number of cores.

like image 161
dhjc Avatar answered Sep 09 '25 07:09

dhjc