work with distributed 1.16.1

This commit is contained in:
Szucs Krisztian 2017-04-17 11:05:19 +02:00
parent 5b22d1486a
commit 1b939a6823

View File

@ -36,5 +36,6 @@ async def test(request, value):
if __name__ == '__main__':
# Distributed cluster should run somewhere else
with LocalCluster(scheduler_port=8786, processes=False) as cluster:
with LocalCluster(scheduler_port=8786, nanny=False, n_workers=2,
threads_per_worker=1) as cluster:
app.run(host="0.0.0.0", port=8000)