[slurm-users] Re: Run a command in Slurm with all streams and signals connected to the submitting command

2025-04-04 Thread Michael Milton via slurm-users
> Looking at the srun man page, I could speculate that --clusters > or --cluster-constraint might help in that regard (but I am not sure). > > Have a nice weekend > > > On Fri, Apr 4, 2025 at 6:27 AM Michael Milton via slurm-users < > slurm-users@lists.schedmd.com> wrote: &g

[slurm-users] Re: Run a command in Slurm with all streams and signals connected to the submitting command

2025-04-06 Thread Michael Milton via slurm-users
25 5:23 am, Michael Milton via slurm-users wrote: > > > Plain srun re-uses the existing Slurm allocation, and specifying > > resources like --mem will just request then from the current job rather > > than submitting a new one > > srun does that as it sees all the various SLUR

[slurm-users] Run a command in Slurm with all streams and signals connected to the submitting command

2025-04-04 Thread Michael Milton via slurm-users
I'm helping with a workflow manager that needs to submit Slurm jobs. For logging and management reasons, the job (e.g. srun python) needs to be run as though it were a regular subprocess (python): - stdin, stdout and stderr for the command should be connected to process inside the job - s