首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >BokehWebInterface不适用于分布式任务

BokehWebInterface不适用于分布式任务
EN

Stack Overflow用户
提问于 2017-06-13 04:36:45
回答 0查看 203关注 0票数 0

我已经将我的Dask从版本0.14.3更新到0.15.0,并从1.16.3发布到1.17.0。BokehWebInterface已从此版本中删除。主页可以加载http://localhost:8787,但我不能访问任务,状态,工作者(它试图重新加载,直到所有任务都完成,然后给出can't reach错误)。以前所有的东西都可以在早期版本上运行。

代码语言:javascript
复制
loop = IOLoop.current()
t = Thread(target=loop.start)
t.setDaemon(True)
t.start()
workers = []
services = {('http', HTTP_PORT): HTTPScheduler, ('bokeh', BOKEH_INTERNAL_PORT): BokehScheduler}
port = 8786
scheduler = Scheduler(loop=loop, services=services)
workers = []
bokeh_web = None
try:
    scheduler.start(port)
    # removed after updating the dask and ditributed
    bokeh_web = BokehWebInterface(http_port=HTTP_PORT, bokeh_port=BOKEH_PORT)
    # start workers
    for resource in resources:
         workers.append(Worker(scheduler.ip, port, **opts).start(0))
finally:
    for worker in workers:
        worker.stop()
    scheduler.stop()
    bokeh_web.close()
EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44508308

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档