了解本地环境中 Dask 调度程序中的哪些任务 运行
Understanding which tasks are running in a Dask schedular in a local environment
假设我们 运行 在 Localhost 环境中,我的脚本是 运行 某种 Dask
任务。
有没有办法找出 scheduler/tasks 是 运行? (因为我不知道调度程序 运行 在哪个端口)
您可以通过调用client.scheduler_info()
找出调度程序中活动的各种端口
然后我建议尽可能使用诊断仪表板。仪表板的端口列在 "services" 键
的 "bokeh" 下
>>> client.scheduler_info()['services']
{'bokeh': 43917}
或者您始终可以直接使用 client.run_on_scheduler
function to inspect scheduling state。
假设我们 运行 在 Localhost 环境中,我的脚本是 运行 某种 Dask
任务。
有没有办法找出 scheduler/tasks 是 运行? (因为我不知道调度程序 运行 在哪个端口)
您可以通过调用client.scheduler_info()
然后我建议尽可能使用诊断仪表板。仪表板的端口列在 "services" 键
的 "bokeh" 下>>> client.scheduler_info()['services']
{'bokeh': 43917}
或者您始终可以直接使用 client.run_on_scheduler
function to inspect scheduling state。