(self, tokens)
return False
Check if a list of tokens contains an abort token.

        Args:
            tokens: The list of tokens to check.
        Returns:
            True iff the list contains an abort token.
Check if a list of tokens contains an abort token.
Check if a list of tokens contains an abort token .
def _has_abort_token(self, tokens):
        """Check if a list of tokens contains an abort token.

        Args:
            tokens: The list of tokens to check.
        Returns:
            True iff the list contains an abort token.
        """
        abort_signal = Signal.action_to_string(Signal.ABORT)
        abort_name = Name(workflow=self._workflow,
                          instance=self._instance,
                          signal=abort_signal)
        abort_token_name = abort_name.get_signal_token_name()
        for token in tokens:
            if token.name == abort_token_name:
                return True
        return False
def _has_abort_token ( self , tokens ) : abort_signal = Signal . action_to_string ( Signal . ABORT ) abort_name = Name ( workflow = self . _workflow , instance = self . _instance , signal = abort_signal ) abort_token_name = abort_name . get_signal_token_name ( ) for token in tokens : if token . name == abort_token_name : return True return False