https://github.com/apache/airflow/blob/main/airflow/cli/commands/task_command.py#L145
"""
        Build an SQLAlchemy filter for a list of task_ids or tuples of (task_id,map_index).
        :meta private:
        """
        
        
        task_id_only = [v for v in vals if isinstance(v, str)]
        with_map_index = [v for v in vals if not isinstance(v, str)]
        filters: list[ColumnOperators] = []
        if task_id_only:
            filters.append(cls.task_id.in_(task_id_only))
        if with_map_index:
            filters.append(tuple_in_condition((cls.task_id, cls.map_index), with_map_index))
        if not filters:
            return false()
        if len(filters) == 1:
            return filters[0]
        return or_(*filters)
    @Sentry.enrich_errors
    @provide_session
    def schedule_downstream_tasks(self, session: Session = NEW_SESSION, max_tis_per_query: int | None = None):