FrozenSoul90
FrozenSoul90

Reputation: 313

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

@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?

Upvotes: 4

Views: 6484

Answers (1)

dhjc
dhjc

Reputation: 141

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

Upvotes: 3

Related Questions