work with distributed 1.16.1
This commit is contained in:
parent
5b22d1486a
commit
1b939a6823
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user