def kill(self):
        """ Send SIGKILL to the task's process. """
        logger.info('Sending SIGKILL to task {0}'.format(self.name))
        if hasattr(self, 'remote_client') and self.remote_client is not None:
            self.kill_sent = True
            self.remote_client.close()
            return
        if not self.process:
            raise DagobahError('task does not have a running process')
        self.kill_sent = True
        self.process.kill()
def kill ( self ) : logger . info ( 'Sending SIGKILL to task {0}' . format ( self . name ) ) if hasattr ( self , 'remote_client' ) and self . remote_client is not None : self . kill_sent = True self . remote_client . close ( ) return if not self . process : raise DagobahError ( 'task does not have a running process' ) self . kill_sent = True self . process . kill ( )
Send SIGKILL to the task's process.