-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move allocatecmd and deallocatecmd into their own plugin #800
Comments
The current code requires that the command used is srun which does support --jobid so I think it should be ok the way it is. The deallocate scancel uses the --job-name so that is not an issue. |
Maybe if the code checks whether Like so:
|
SLURM.py in 'Add support for srun in --no-shell allocation' added to boolean ' and '--jobid-' not in ' '.join(cmdargs):' to avoid a possible corner case issue. Fixes open-mpi#800 Signed-off-by: Deb Rezanka <[email protected]>
SLURM.py in 'Add support for srun in --no-shell allocation' added to boolean ' and '--jobid-' not in ' '.join(cmdargs):' to avoid a possible corner case issue. Fixes open-mpi#800 Signed-off-by: Deb Rezanka <[email protected]>
This will only impact others if they are using SLURM plugin with a command that doesn't support "--jobid" switch, and are using allocate_cmd. In this case they will have a syntax error that might be difficult to debug. I'm not sure if this corner case would ever come up, but it might
Maybe it makes more sense if we do allocate_cmd and deallocate_cmd in separate stages that use a plugin that parses the jobid, and reference them using the log like so:
What do you think? @DebRez
The text was updated successfully, but these errors were encountered: