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

Geethanadh
  • 313
  • 5
  • 17

1 Answers1

3

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

dhjc
  • 141
  • 1
  • 2
  • 7
  • 3
    "number of cores" as far as you can tell from python, which is often actually the number of virtual threads – mdurant Jan 31 '19 at 15:36