def stop(self):
        """Interrupt/cancel execution, but will allow current child task
        to complete."""
        #self.ev_intr.set()

        try:
            self.task.stop()

        except TaskError as e:
            self.logger.error("Error cancelling child task: %s" % (str(e)))
def stop ( self ) : try : self . task . stop ( ) except TaskError as e : self . logger . error ( "Error cancelling child task: %s" % ( str ( e ) ) )
Interrupt/cancel execution, but will allow current child task
        to complete.