(cls, session)
This allows another session to claim the channel

        The contact_id remains set, and incoming SMS will keep affinity with that contact
        until another session claims the channel.
This allows another session to claim the channel
This allows another session to claim the channel
def release_channel_for_session(cls, session):
        """
        This allows another session to claim the channel

        The contact_id remains set, and incoming SMS will keep affinity with that contact
        until another session claims the channel.
        """
        channel = session.get_channel()
        with cls._critical_section(channel):
            running_session_info = cls.get_running_session_info_for_channel(channel)
            if cls._channel_is_available_for_session(session):
                cls._release_running_session_info_for_channel(running_session_info, channel)
def release_channel_for_session ( cls , session ) : channel = session . get_channel ( ) with cls . _critical_section ( channel ) : running_session_info = cls . get_running_session_info_for_channel ( channel ) if cls . _channel_is_available_for_session ( session ) : cls . _release_running_session_info_for_channel ( running_session_info , channel )