Signed-off-by: Catch-Bull <burglarralgrub@gmail.com>
This commit is contained in:
Catch-Bull 2022-08-24 21:13:03 +08:00
parent afe9a7df28
commit 3d79b56b8a

View file

@ -111,7 +111,10 @@ def get_all_modules(module_type):
for module_loader, name, ispkg in pkgutil.walk_packages(
ray.dashboard.modules.__path__, ray.dashboard.modules.__name__ + "."
):
if not dashboard_consts.ENABLE_JOB_AGENT and name == "ray.dashboard.modules.job.job_agent":
if (
not dashboard_consts.ENABLE_JOB_AGENT
and name == "ray.dashboard.modules.job.job_agent"
):
continue
try:
importlib.import_module(name)