parameters: (self, task_ids)
docstring: Retrieve information on a task.
          @param task_id: ID of the task to query.
          @return: details on the task.
docstring_summary: Retrieve information on a task.
docstring_tokens: Retrieve information on a task .
function: 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()
function_tokens: 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 ( )