def get_queue_names(app_id=None, max_rows=100):
 rpc = apiproxy_stub_map.UserRPC('taskqueue')
 request = taskqueue_service_pb.TaskQueueFetchQueuesRequest()
 response = taskqueue_service_pb.TaskQueueFetchQueuesResponse()
 if app_id:
  request.set_app_id(app_id)
 request.set_max_rows(max_rows)
 queues = ['default']
 try:
  rpc.make_call('FetchQueues', request, response)
  rpc.check_success()
  for queue in response.queue_list():
   if ((queue.mode() == taskqueue_service_pb.TaskQueueMode.PUSH) and (not queue.queue_name().startswith('__')) and (queue.queue_name() != 'default')):
    queues.append(queue.queue_name())
 except Exception:
  logging.exception('Failed to get queue names.')
 return queues

def get_queue_names ( app_id = None , max_rows = 100 ) : rpc = apiproxy_stub_map . UserRPC ( 'taskqueue' ) request = taskqueue_service_pb . TaskQueueFetchQueuesRequest ( ) response = taskqueue_service_pb . TaskQueueFetchQueuesResponse ( ) if app_id : request . set_app_id ( app_id ) request . set_max_rows ( max_rows ) queues = [ 'default' ] try : rpc . make_call ( 'FetchQueues' , request , response ) rpc . check_success ( ) for queue in response . queue_list ( ) : if ( ( queue . mode ( ) == taskqueue_service_pb . TaskQueueMode . PUSH ) and ( not queue . queue_name ( ) . startswith ( '__' ) ) and ( queue . queue_name ( ) != 'default' ) ) : queues . append ( queue . queue_name ( ) ) except Exception : logging . exception ( 'Failed to get queue names.' ) return queues
returns a list with all non-special queue names for app_id .