File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11import logging
2+ import os
23from importlib import import_module
34from pathlib import Path
45
78from agentlab .experiments .exp_utils import run_exp
89from agentlab .experiments .loop import ExpArgs , yield_all_exp_results
910
11+ RAY_PUBLIC_DASHBOARD = os .environ .get ("RAY_PUBLIC_DASHBOARD" , "false" ) == "true"
12+
1013
1114def run_experiments (
1215 n_jobs ,
@@ -82,7 +85,9 @@ def run_experiments(
8285 elif parallel_backend == "ray" :
8386 from agentlab .experiments .graph_execution_ray import execute_task_graph , ray
8487
85- ray .init (num_cpus = n_jobs )
88+ ray .init (
89+ num_cpus = n_jobs , dashboard_host = "0.0.0.0" if RAY_PUBLIC_DASHBOARD else "127.0.0.1"
90+ )
8691 try :
8792 execute_task_graph (exp_args_list , avg_step_timeout = avg_step_timeout )
8893 finally :
You can’t perform that action at this time.
0 commit comments