Closed manuel-g-castro closed 1 day ago
Hi, the easiest way to start workers is through Automatic allocation, which does indeed start one worker per node in the allocation by default. However, the Python API is currently only useful for defining jobs. It can also start a simple local cluster for experiments, but we don't currently expose the automatic allocation interface through the Python API. Therefore, automatic allocation either needs to be started from the CLI, or you can just run the CLI commands from Python.
We plan to add this in the future, but it's not currently a high priority item.
Okayy! Thanks, @Kobzol !
Hello! I am building a script to be executed within a Slurm or PJM (Fujitsu's scheduler) allocation. I want to start one worker per node in the allocation, so the current working implementation in Slurm uses
srun
:I am wondering if I can do the same with the Python API.