diff --git a/src/bob/pipelines/config/distributed/slurm_cpu_default.py b/src/bob/pipelines/config/distributed/slurm_cpu_default.py index 74105caae92c0da5b1e6be04694c7705ce5ab61d..be6aa28ff516cc14fe0e0671a3a4b382cf96e6ad 100644 --- a/src/bob/pipelines/config/distributed/slurm_cpu_default.py +++ b/src/bob/pipelines/config/distributed/slurm_cpu_default.py @@ -70,8 +70,12 @@ cluster = SLURMCluster( protocol="tcp://", scheduler_options={ "protocol": "tcp://", - "port": 8786, # Workers will connect to the scheduler on that port. + "port": 8786, # Workers will connect to the scheduler on that port }, + worker_extra_args=[ + "--worker-port", + "60001:63000", # Workers will be reachable by the Client on those ports + ], ) cluster.adapt(