def kill(self, ti):
if self.cmd is None:<EOL><INDENT>if not ti and not self.task_instance:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>elif not ti:<EOL><INDENT>ti = self.task_instance<EOL><DEDENT>cmd_id = ti.xcom_pull(key="<STR_LIT>", task_ids=ti.task_id)<EOL>self.cmd = self.cls.find(cmd_id)<EOL><DEDENT>if self.cls and self.cmd:<EOL><INDENT>self.log.info('<STR_LIT>', self.cmd.id)<EOL>self.cmd.cancel()<EOL><DEDENT>
Kill (cancel) a Qubole command
:param ti: Task Instance of the dag, used to determine the Quboles command id
:return: response from Qubole