original_docstring:  Retrieve total set of revision records for users within timeframe 
docstring: Retrieve total set of revision records for users within timeframe
docstring_tokens: Retrieve total set of revision records for users within timeframe
code: def _get_revisions(args):
      """ Retrieve total set of revision records for users within timeframe """
      um.log_pool_worker_start(__name__, _get_revisions.__name__, args[0], args[1])
  
      users = args[0]
      state = args[1]
  
      metric_params = um.UserMetric._unpack_params(state)
      query_args_type = namedtuple('QueryArgs', 'date_start date_end namespace')
  
      revs = list()
      umpd_obj = UMP_MAP[metric_params.group](users, metric_params)
      try:
          for t in umpd_obj:
              revs += \
                  list(query_mod.rev_query(t.user, metric_params.project,
                                           query_args_type(t.start, t.end,
                                                           metric_params.namespace)))
      except query_mod.UMQueryCallError as e:
          logging.error('{0}:: {1}. PID={2}'.format(__name__,
                                                    e.message, os.getpid()))
          return []
  
      um.log_pool_worker_end(__name__, _process_help.__name__)
      return revs
code_tokens: def _get_revisions ( args ) : um . log_pool_worker_start ( __name__ , _get_revisions . __name__ , args [ 0 ] , args [ 1 ] ) users = args [ 0 ] state = args [ 1 ] metric_params = um . UserMetric . _unpack_params ( state ) query_args_type = namedtuple ( 'QueryArgs' , 'date_start date_end namespace' ) revs = list ( ) umpd_obj = UMP_MAP [ metric_params . group ] ( users , metric_params ) try : for t in umpd_obj : revs += list ( query_mod . rev_query ( t . user , metric_params . project , query_args_type ( t . start , t . end , metric_params . namespace ) ) ) except query_mod . UMQueryCallError as e : logging . error ( '{0}:: {1}. PID={2}' . format ( __name__ , e . message , os . getpid ( ) ) ) return [ ] um . log_pool_worker_end ( __name__ , _process_help . __name__ ) return revs
short_docstring: Retrieve total set of revision records for users within timeframe
short_docstring_tokens: Retrieve total set of revision records for users within timeframe
comment: """ Retrieve total set of revision records for users within timeframe """