def kill(self, job_id):
check_jobid(job_id)<EOL>queue = self._get_queue()<EOL>if queue is None:<EOL><INDENT>raise QueueDoesntExist<EOL><DEDENT>ret, output = self._call('<STR_LIT>' % (<EOL>shell_escape(queue / '<STR_LIT>'),<EOL>job_id),<EOL>False)<EOL>if ret == <NUM_LIT:3>:<EOL><INDENT>raise JobNotFound<EOL><DEDENT>elif ret != <NUM_LIT:0>:<EOL><INDENT>raise RemoteCommandFailure(command='<STR_LIT>',<EOL>ret=ret)<EOL><DEDENT>
Kills a job on the server.