MCPcopy Index your code
hub / github.com/dask/dask / get_sync

Function get_sync

dask/local.py:587–599  ·  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

585
586
587def get_sync(dsk: Mapping, keys: Sequence[Key] | Key, **kwargs):
588 """A naive synchronous version of get_async
589
590 Can be useful for debugging.
591 """
592 kwargs.pop("num_workers", None) # if num_workers present, remove it
593 return get_async(
594 synchronous_executor.submit,
595 synchronous_executor._max_workers,
596 dsk,
597 keys,
598 **kwargs,
599 )
600
601
602""" 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…