(self)
Mark the current task as canceled

        The task is responsible for checking to see if it has been
        canceled and acting accordingly.
Mark the current task as canceled
Mark the current task as canceled
def cancel(self):
        """Mark the current task as canceled

        The task is responsible for checking to see if it has been
        canceled and acting accordingly.
        """
        self.client.set(self.rule_cancellation_key, 1, timeout=2 * 60 * 60)
def cancel ( self ) : self . client . set ( self . rule_cancellation_key , 1 , timeout = 2 * 60 * 60 )