Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set port 8786 as default port for scheduler #4431

Closed
wants to merge 9 commits into from
2 changes: 1 addition & 1 deletion distributed/deploy/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(
start=None,
host=None,
ip=None,
scheduler_port=0,
scheduler_port=8786,
silence_logs=logging.WARN,
dashboard_address=":8787",
worker_dashboard_address=None,
Expand Down
7 changes: 7 additions & 0 deletions distributed/deploy/tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,3 +1045,10 @@ async def test_no_workers(cleanup):
n_workers=0, silence_logs=False, dashboard_address=None, asynchronous=True
) as c:
pass


@pytest.mark.asyncio
async def test__default_scheduler_port():
FabioRosado marked this conversation as resolved.
Show resolved Hide resolved
async with LocalCluster(n_workers=2, processes=False, asynchronous=True) as cluster:

assert cluster.scheduler_port == 8786
FabioRosado marked this conversation as resolved.
Show resolved Hide resolved