parameters: (queue_name)
docstring: Determine which queue MR should run on.
  
    How to choose the queue:
    1. If user provided one, use that.
    2. If we are starting a mr from taskqueue, inherit that queue.
       If it's a special queue, fall back to the default queue.
    3. Default queue.
  
    If user is using any MR pipeline interface, pipeline.start takes a
    "queue_name" argument. The pipeline will run on that queue and MR will
    simply inherit the queue_name.
  
    Args:
      queue_name: queue_name from user. Maybe None.
  
    Returns:
      The queue name to run on.
docstring_summary: Determine which queue MR should run on.
docstring_tokens: Determine which queue MR should run on .
function: def get_queue_name(queue_name):
    """Determine which queue MR should run on.
  
    How to choose the queue:
    1. If user provided one, use that.
    2. If we are starting a mr from taskqueue, inherit that queue.
       If it's a special queue, fall back to the default queue.
    3. Default queue.
  
    If user is using any MR pipeline interface, pipeline.start takes a
    "queue_name" argument. The pipeline will run on that queue and MR will
    simply inherit the queue_name.
  
    Args:
      queue_name: queue_name from user. Maybe None.
  
    Returns:
      The queue name to run on.
    """
    if queue_name:
      return queue_name
    queue_name = os.environ.get("HTTP_X_APPENGINE_QUEUENAME",
                                parameters.config.QUEUE_NAME)
    if len(queue_name) > 1 and queue_name[0:2] == "__":
      # We are currently in some special queue. E.g. __cron.
      return parameters.config.QUEUE_NAME
    else:
      return queue_name
function_tokens: def get_queue_name ( queue_name ) : if queue_name : return queue_name queue_name = os . environ . get ( "HTTP_X_APPENGINE_QUEUENAME" , parameters . config . QUEUE_NAME ) if len ( queue_name ) > 1 and queue_name [ 0 : 2 ] == "__" : # We are currently in some special queue. E.g. __cron. return parameters . config . QUEUE_NAME else : return queue_name