parameters: (self, task_id)
return_statement: return task.status
docstring: Return if a task is finish.
           @param task_id: task id.
           @return: true if a task is complete.
docstring_summary: Return if a task is finish.
docstring_tokens: Return if a task is finish .
function: def get_status(self, task_id):
          """Return if a task is finish.
           @param task_id: task id.
           @return: true if a task is complete.
          """
          session = self.Session()
          try:
              task = session.query(Task).get(task_id)
          except SQLAlchemyError:
              return None
          return task.status
function_tokens: def get_status ( self , task_id ) : session = self . Session ( ) try : task = session . query ( Task ) . get ( task_id ) except SQLAlchemyError : return None return task . status