MCPcopy Create free account
hub / github.com/dask/dask / get_sync

Function get_sync

dask/local.py:589–601  ·  view source on GitHub ↗

A naive synchronous version of get_async Can be useful for debugging.

(dsk: Mapping, keys: Sequence[Key] | Key, **kwargs)

Source from the content-addressed store, hash-verified

587
588
589def get_sync(dsk: Mapping, keys: Sequence[Key] | Key, **kwargs):
590 """A naive synchronous version of get_async
591
592 Can be useful for debugging.
593 """
594 kwargs.pop("num_workers", None) # if num_workers present, remove it
595 return get_async(
596 synchronous_executor.submit,
597 synchronous_executor._max_workers,
598 dsk,
599 keys,
600 **kwargs,
601 )
602
603
604""" Adaptor for ``multiprocessing.Pool`` instances

Callers 11

custom_schedulerFunction · 0.90
test_cache_optionsFunction · 0.90
test_orderingFunction · 0.90
test_complex_orderingFunction · 0.90
test_start_callbackFunction · 0.90
custom_schedulerFunction · 0.90

Calls 2

get_asyncFunction · 0.85
popMethod · 0.80

Tested by 11

custom_schedulerFunction · 0.72
test_cache_optionsFunction · 0.72
test_orderingFunction · 0.72
test_complex_orderingFunction · 0.72
test_start_callbackFunction · 0.72
custom_schedulerFunction · 0.72