(self, task_ids)
Retrieve information on a task.
        @param task_id: ID of the task to query.
        @return: details on the task.
Retrieve information on a task.
Retrieve information on a task .
def view_tasks(self, task_ids):
        """Retrieve information on a task.
        @param task_id: ID of the task to query.
        @return: details on the task.
        """
        session = self.Session()
        try:
            tasks = session.query(Task).options(
                joinedload("guest"),
                joinedload("errors"),
                joinedload("tags")
            ).filter(Task.id.in_(task_ids)).order_by(Task.id).all()
        except SQLAlchemyError as e:
            log.exception("Database error viewing tasks: {0}".format(e))
            return []
        else:
            for task in tasks:
                session.expunge(task)
            return tasks
        finally:
            session.close()
def view_tasks ( self , task_ids ) : session = self . Session ( ) try : tasks = session . query ( Task ) . options ( joinedload ( "guest" ) , joinedload ( "errors" ) , joinedload ( "tags" ) ) . filter ( Task . id . in_ ( task_ids ) ) . order_by ( Task . id ) . all ( ) except SQLAlchemyError as e : log . exception ( "Database error viewing tasks: {0}" . format ( e ) ) return [ ] else : for task in tasks : session . expunge ( task ) return tasks finally : session . close ( )