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

Function custom_scheduler

dask/dataframe/tests/test_utils_dataframe.py:641–647  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

639 using_custom_scheduler = False
640
641 def custom_scheduler(*args, **kwargs):
642 nonlocal using_custom_scheduler
643 try:
644 using_custom_scheduler = True
645 return get_sync(*args, **kwargs)
646 finally:
647 using_custom_scheduler = False
648
649 def check_custom_scheduler(part: pd.DataFrame) -> pd.DataFrame:
650 assert using_custom_scheduler, "not using custom scheduler"

Callers

nothing calls this directly

Calls 1

get_syncFunction · 0.90

Tested by

no test coverage detected