A naive synchronous version of get_async Can be useful for debugging.
(dsk: Mapping, keys: Sequence[Key] | Key, **kwargs)
| 585 | |
| 586 | |
| 587 | def 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 |
searching dependent graphs…