Skip to content
Snippets Groups Projects
Commit 5badfd1c authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Fixed unhandled port for stopping tasks via SSH on Slurm cluster computing resources.

parent d9d434f9
No related branches found
No related tags found
No related merge requests found
......@@ -571,7 +571,7 @@ class SlurmSSHClusterComputingManager(ClusterComputingManager, SSHComputingManag
computing_user, computing_host, computing_port, computing_keys = get_ssh_access_mode_credentials(self.computing, task.user)
# Stop the task remotely
stop_command = 'ssh -o LogLevel=ERROR -i {} -4 -o StrictHostKeyChecking=no {}@{} \'/bin/bash -c "scancel {}"\''.format(computing_keys.private_key_file, computing_user, computing_host, task.id)
stop_command = 'ssh -o -p {} LogLevel=ERROR -i {} -4 -o StrictHostKeyChecking=no {}@{} \'/bin/bash -c "scancel {}"\''.format(computing_port, computing_keys.private_key_file, computing_user, computing_host, task.id)
out = os_shell(stop_command, capture=True)
if out.exit_code != 0:
raise Exception(out.stderr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment