Пример #1
0
def test_worker_ncores():
    from distributed.worker import _ncores
    w = Worker('127.0.0.1', 8018, '127.0.0.1', 8019)
    assert w.executor._max_workers == _ncores
    w.terminate()