'Attempts to delete a dispatched job'

def stop_job(self, job):

    try:
        (shell_params, job_params) = self.parse_destination_params(job.destination_params)
        (shell, job_interface) = self.get_cli_plugins(shell_params, job_params)
        cmd_out = shell.execute(job_interface.delete(job.job_runner_external_id))
        assert (cmd_out.returncode == 0), cmd_out.stderr
        log.debug(("(%s/%s)    Terminated    at    user's    request" % (job.id, job.job_runner_external_id)))
    except Exception as e:
        log.debug(('(%s/%s)    User    killed    running    job,    but    error    encountered    during    termination:    %s' % (job.id, job.job_runner_external_id, e)))
